From d854c7aa5be67e66fb86eb561d92fbb940bf33aa Mon Sep 17 00:00:00 2001 From: caishi <1149225589@qq.com> Date: Fri, 25 Aug 2017 14:35:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E8=AE=AD=E8=AF=BE=E7=A8=8B=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/subjects/_subject_top.html.erb | 2 +- app/views/subjects/show.html.erb | 60 ++++++++++++++++-------- public/stylesheets/css/edu-common.css | 2 +- public/stylesheets/css/edu-subject.css | 9 ++-- public/stylesheets/css/taskstyle.css | 7 +-- 5 files changed, 52 insertions(+), 28 deletions(-) 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 %>
+