From 893e5dc7f3f69eb924b18628ab6e944b7b491f98 Mon Sep 17 00:00:00 2001 From: Tim Date: Wed, 13 Jan 2016 18:33:22 +0800 Subject: [PATCH] =?UTF-8?q?=E9=92=88=E5=AF=B9=E8=AF=BE=E7=A8=8B370?= =?UTF-8?q?=E7=9A=84=E7=B2=BE=E5=93=81=E8=AF=BE=E7=A8=8B=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E8=AE=BE=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/layouts/_project_info.html.erb | 191 ++++++++++++----------- public/images/course/boutique.png | Bin 0 -> 10183 bytes public/images/course/medal.png | Bin 0 -> 1579 bytes public/stylesheets/courses.css | 1 + 4 files changed, 100 insertions(+), 92 deletions(-) create mode 100644 public/images/course/boutique.png create mode 100644 public/images/course/medal.png diff --git a/app/views/layouts/_project_info.html.erb b/app/views/layouts/_project_info.html.erb index 51758ea4c..60fc6f96d 100644 --- a/app/views/layouts/_project_info.html.erb +++ b/app/views/layouts/_project_info.html.erb @@ -1,92 +1,99 @@ -<% is_teacher = User.current.logged? && (User.current.admin? || User.current.allowed_to?(:as_teacher,@course)) %> -<% teacher_num = searchTeacherAndAssistant(@course).count %> -<% student_num = studentCount(@course) %> -<% course_file_num = visable_attachemnts_incourse(@course).count%> - -
<%= @course.is_public == 0 ? "私有课程" : "公开课程" %>
-
-ID:<%= @course.id%> -
- -
- - - - - - - - - - - - - - - - - - - - -
- -
- - <%= @course.name %> - - <%# if @course.is_public == 0%> - - - <%# end %> - - <%if User.current && @course.tea_id == User.current.id && (@course.outline == 0 || BlogComment.where(:id=>@course.outline).count == 0) %> - - <% elsif User.current && @course.tea_id == User.current.id && @course.outline != 0 && BlogComment.where(:id=>@course.outline).count != 0%> - - <% elsif User.current && @course.tea_id != User.current.id && !@course.is_public? && User.current.member_of_course?(@course) && @course.outline != 0%> - - <% elsif User.current && @course.tea_id != User.current.id && @course.is_public? && @course.outline != 0%> - - <%else%> - <%end %> - -
-
-
-
-<%= l(:label_account_identity_teacher)%>(<%= course_teacher_link teacher_num %>) - -<%= l(:label_account_identity_student)%>(<%= course_student_link student_num %>) - -<%= l(:project_module_attachments)%>(<%= link_to course_file_num, course_files_path(@course), :class => 'info_foot_num c_blue',:id=>'courses_files_count_info' %>)
-
-<% if is_teacher %> -
- -
-<% end %> +<% is_teacher = User.current.logged? && (User.current.admin? || User.current.allowed_to?(:as_teacher,@course)) %> +<% teacher_num = searchTeacherAndAssistant(@course).count %> +<% student_num = studentCount(@course) %> +<% course_file_num = visable_attachemnts_incourse(@course).count%> + +
<%= @course.is_public == 0 ? "私有课程" : "公开课程" %> + <% if @course.id == 370 %> + 精品课程 + <% end %> +
+
+ID:<%= @course.id%> +
+ +
+ + + + + + + + + + + + + + + + + + + + +
+ +
+ + <%= @course.name %> + + <%# if @course.is_public == 0%> + + + <%# end %> + + <%if User.current && @course.tea_id == User.current.id && (@course.outline == 0 || BlogComment.where(:id=>@course.outline).count == 0) %> + + <% elsif User.current && @course.tea_id == User.current.id && @course.outline != 0 && BlogComment.where(:id=>@course.outline).count != 0%> + + <% elsif User.current && @course.tea_id != User.current.id && !@course.is_public? && User.current.member_of_course?(@course) && @course.outline != 0%> + + <% elsif User.current && @course.tea_id != User.current.id && @course.is_public? && @course.outline != 0%> + + <%else%> + <%end %> + +
+
+
+
+<%= l(:label_account_identity_teacher)%>(<%= course_teacher_link teacher_num %>) + +<%= l(:label_account_identity_student)%>(<%= course_student_link student_num %>) + +<%= l(:project_module_attachments)%>(<%= link_to course_file_num, course_files_path(@course), :class => 'info_foot_num c_blue',:id=>'courses_files_count_info' %>)
+
+<% if is_teacher %> +
+ +
+<% end %> diff --git a/public/images/course/boutique.png b/public/images/course/boutique.png new file mode 100644 index 0000000000000000000000000000000000000000..4a73020e1c2338bce7fe80ec95969c28d5aabc92 GIT binary patch literal 10183 zcmaiaWmFv9wk__`c<`pt1a~J$b&}&`59%)@UF&Bsc^J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