28 lines
1.3 KiB
Plaintext
28 lines
1.3 KiB
Plaintext
<% teachers_num = teacher_count @syllabus%>
|
||
<% students_num = student_count @syllabus%>
|
||
<% files_num = file_count @syllabus%>
|
||
<div class="pr_info_logo fl mb5">
|
||
<%= image_tag("../images/syllabus.jpg",width:"60px", height: "60px") %>
|
||
</div>
|
||
<div class="fl ml15">
|
||
<p class="homepageImageName mb5"><%=@syllabus.title %></p>
|
||
<div class="cl"></div>
|
||
</div>
|
||
<div class="cl"></div>
|
||
<div>
|
||
<div class="mb5">
|
||
<% if @syllabus.eng_name && !@syllabus.eng_name.empty? %>
|
||
<span><%= @syllabus.eng_name %></span>
|
||
<% else%>
|
||
<span class="fontGrey">课程英文名称</span>
|
||
<% end %>
|
||
<% if User.current == @syllabus.user %>
|
||
<%= link_to image_tag("../images/signature_edit.png",width:"12px", height: "12px"), "javascript:void(0);", :onclick => "show_edit_eng_name();"%>
|
||
<% end %>
|
||
</div>
|
||
</div>
|
||
<div class="pr_info_foot ">
|
||
教师(<a class="info_foot_num c_blue" href="javascript:void(0);" target="_blank" style="cursor: default"><%=teachers_num %></a>)<span>|</span>
|
||
学生(<a class="info_foot_num c_blue" href="javascript:void(0);" target="_blank" style="cursor: default"><%=students_num %></a>)<span>|</span>
|
||
资源(<a class="info_foot_num c_blue" href="javascript:void(0);" target="_blank" style="cursor: default"><%=files_num %></a>)</div>
|
||
<div class="cl"></div> |