socialforge/app/views/layouts/_syllabus_eng_name.html.erb

9 lines
607 B
Plaintext
Raw Normal View History

2016-07-22 16:00:56 +08:00
<p style="position:relative; display:inline;"><% if syllabus.eng_name && !syllabus.eng_name.empty? %>
2016-07-22 10:20:28 +08:00
<span><%=syllabus.eng_name %></span>
2016-07-01 11:11:53 +08:00
<% else%>
<span style="color: #888"></span>
2016-07-01 11:11:53 +08:00
<% end %>
<% if User.current == syllabus.user || User.current.admin? %>
<%= link_to image_tag("../images/signature_edit.png",width:"12px", height: "12px"), "javascript:void(0);",:id => "syllabus_edit_ng_name_png", :style => "width:15px; position:absolute; right: -20px; top: 5px;", :class => "none", :onclick => "show_edit_eng_name('#{syllabus.eng_name}');", :title => '编辑课程英文名称'%>
2016-07-22 10:20:28 +08:00
<% end %>
</p>