diff --git a/app/views/subjects/_subject_top.html.erb b/app/views/subjects/_subject_top.html.erb index 597ba93b9..c43ec882c 100644 --- a/app/views/subjects/_subject_top.html.erb +++ b/app/views/subjects/_subject_top.html.erb @@ -2,7 +2,7 @@
<%= @subject.name %> <% if User.current.manager_of_subject?(@subject) %> - + <% end %>
diff --git a/app/views/subjects/show.html.erb b/app/views/subjects/show.html.erb index 25332ef71..384b0bbb4 100644 --- a/app/views/subjects/show.html.erb +++ b/app/views/subjects/show.html.erb @@ -4,7 +4,7 @@
<% if User.current.manager_of_subject?(@subject) %> - + <% end %>
+
第<%= index + 1 %>章 <%= stage.name %> <% if @subject.status == 0 && User.current.manager_of_subject?(@subject) %> - - + + <% else %> <% end %> @@ -34,27 +34,27 @@
学习须知 <% if User.current.manager_of_subject?(@subject) %> - + <% end %>
<%= @subject.learning_notes.blank? ? "暂未填写" : @subject.learning_notes %>
教学名师
-教学名师
+<%= image_tag(url_to_avatar(@subject.user), :width =>"40", :height => "40", :class => "bor-radius-all", :alt=>"头像") %>
<%= @subject.user.try(:show_name) %>
<%= @subject.user.school_name + @subject.user.identity %>
<%= @subject.user.user_extensions.brief_introduction.blank? ? "暂未填写" : @subject.user.user_extensions.brief_introduction %>
- +<%= @subject.user.user_extensions.brief_introduction.blank? ? "暂未填写" : @subject.user.user_extensions.brief_introduction %>
+