diff --git a/app/views/courses/_course_teacher.html.erb b/app/views/courses/_course_teacher.html.erb index f9e540021..dfa8c0876 100644 --- a/app/views/courses/_course_teacher.html.erb +++ b/app/views/courses/_course_teacher.html.erb @@ -1,23 +1,26 @@ -
-
- 加入时间 - 角色 -
+
+
+
+ 姓名 + 加入时间 + 角色 +
+
+
<% members.each do |member| %> -
- <%= link_to image_tag(url_to_avatar(member.user), :width => "32", :height => "32", :style => "display:block;"), user_path(member.user_id),:target => '_blank', :class => 'st_img' ,:alt => "用户头像" %> - <%= l(:label_username)%> - <%= link_to(member.user.show_name, user_path(member.user),:class => "ml10 c_blue02") %> - <%= format_date(member.created_on)%> - <%= zh_course_role(h member.roles.sort.collect(&:to_s).first)%> +
+ <%= link_to image_tag(url_to_avatar(member.user), :width => "50", :height => "50", :style => "display:block;", :class =>'teacher_member_img'), user_path(member.user_id), :class => 'fl' ,:alt => "用户头像" %> +
+ <%= link_to(member.user.show_name, user_path(member.user),:class => "ml10 mt5 mb10 link-blue db") %> + <%= l(:label_username)%><%= member.user.login%> +
+ <%= format_date(member.created_on)%> + <%= zh_course_role(h member.roles.sort.collect(&:to_s).first)%>
<% end%> - -
    - <%#= pagination_links_full @obj_pages, @obj_count, :per_page_links => false, :remote => false, :flag => true%> -
+
\ No newline at end of file diff --git a/app/views/courses/member.html.erb b/app/views/courses/member.html.erb index 302e771ff..36eef35cd 100644 --- a/app/views/courses/member.html.erb +++ b/app/views/courses/member.html.erb @@ -1,12 +1,11 @@ <% if @role.to_i == 1 %> -
-
-

<%= @subPage_title%>

+
+
+

<%= @subPage_title %>

<% if User.current.allowed_to?(:as_teacher,@course) %> - - <%=link_to "成员管理", {:controller => 'courses', :action => 'settings', :id => @course.id, :tab=>'member'}, :class => 'hw_more_li' %> - + <%=link_to "成员管理", {:controller => 'courses', :action => 'settings', :id => @course.id, :tab=>'member'}, :class => 'link-blue fr mt5' %> <% end %> +
<%= render :partial => 'course_teacher', :locals => {:members => @members} %>
diff --git a/public/stylesheets/css/courses.css b/public/stylesheets/css/courses.css index 97ba3801f..8c0bbb8f4 100644 --- a/public/stylesheets/css/courses.css +++ b/public/stylesheets/css/courses.css @@ -604,3 +604,5 @@ a:hover.ex_icon_edit{ background:url(/images/course/icons.png) -21px -276px no- .archive_course_notice {width:220px; position:absolute; padding:5px 10px; white-space:nowrap; background-color:#fff; right:-265px; top:-15px; box-shadow:0px 2px 8px rgba(146, 153, 169, 0.5);} .archive_course_notice em {display:block; border-width:10px; position:absolute;top:26px; left:-20px; border-style:dashed solid dashed dashed; border-color:transparent #eaeaea transparent transparent; font-size:0; line-height:0;} .archive_course_notice span {display:block; border-width:10px; position:absolute;top:26px; left:-18px; border-style:dashed solid dashed dashed; border-color:transparent #fff transparent transparent; font-size:0; line-height:0;} + +.teacher_member_img{width:50px; height:50px; border: 1px solid #fff;-webkit-border-radius:50px;-moz-border-radius:50px;-o-border-radius:50px;border-radius:50px;} \ No newline at end of file diff --git a/public/stylesheets/css/public.css b/public/stylesheets/css/public.css index 7215604c2..986ebfbdf 100644 --- a/public/stylesheets/css/public.css +++ b/public/stylesheets/css/public.css @@ -738,6 +738,7 @@ a.xls{ margin-left:5px; color:#136b3b;} .st_box ul li{ float:left;} .st_box_top a{ font-weight:bold; color:#7a7a7a; float:left; margin-bottom:5px;} .st_box_top a:hover{ color:#1c9ec7;} +.teacher_st_boxlist{ border-bottom:1px dashed #CCC; height:60px; margin-bottom:10px; } .st_boxlist{ border-bottom:1px dashed #CCC; height:43px; margin-bottom:10px; } .st_boxlist a{ float:left;} .st_boxlist ul{ float:left; width:200px; margin-left:10px;}