#1278修改课程列表中单位名称为开设课程的单位
This commit is contained in:
parent
09f6adbd8d
commit
216537a844
|
@ -11,7 +11,9 @@
|
|||
<p >
|
||||
<%= content_tag('span',"#{l(:label_bid_show_course_name)}:", :class => "course-font")%>
|
||||
<% unless @course.is_public == 1 %>
|
||||
<span class='private_project'><%= l(:label_private) %></span>
|
||||
<span class='private_project'>
|
||||
<%= l(:label_private) %>
|
||||
</span>
|
||||
<% end %>
|
||||
<%= content_tag('span', link_to("#{@course.name}", course_path(@course), :class => "info"))%>
|
||||
</p>
|
||||
|
@ -19,9 +21,8 @@
|
|||
<%= content_tag('span', "#{l(:label_institution_name)}:", :class => "course-font")%>
|
||||
<% @admin = @course.course_infos%>
|
||||
<%if @admin&&@admin.first&&@admin.first.user&&@admin.first.user.user_extensions%>
|
||||
<!-- <%#= @admin.first.user.user_extensions.occupation %> -->
|
||||
<% unless @course.teacher.user_extensions.school.nil? %>
|
||||
<%= link_to @course.teacher.user_extensions.school.try(:name), school_course_list_path(@course.teacher.user_extensions.school) %>
|
||||
<%= link_to(@course.school.try(:name), school_course_list_path(@course.school)) if @course.school %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</p>
|
||||
|
@ -52,7 +53,6 @@
|
|||
|
||||
<!--gcm-->
|
||||
<p class="stats">
|
||||
|
||||
<%= content_tag('span', link_to("#{@course_activity_count[@course.id]}", course_path(@course)), :class => "info") %>
|
||||
<%= content_tag('span', l(:label_x_activity, :count => @course_activity_count[@course.id])) %>
|
||||
</p>
|
||||
|
@ -62,7 +62,7 @@
|
|||
<span class="info"></span>
|
||||
<% if(course_endTime_timeout? @course) %>
|
||||
<span class="font_lighter">
|
||||
课程学期已结束
|
||||
<%= l(:lable_course_end) %>
|
||||
</span>
|
||||
<% else %>
|
||||
<%= join_in_course_for_list(@course, User.current,['regular'])%>
|
||||
|
@ -80,10 +80,6 @@
|
|||
|
||||
<div class="add-info" style="margin-left: 30px; margin-top: -20px">
|
||||
<%= content_tag "span", "#{l(:label_course_brief_introduction)}:", :class => "course-font" %>
|
||||
<%# desc = course.short_description.nil? ? "" : course.short_description%>
|
||||
<!--<#div class="brief_introduction" title="<%#= desc.html_safe%>">
|
||||
<%#= desc.html_safe%>
|
||||
</div>-->
|
||||
<%= content_tag "div", course.short_description, :class => "brief_introduction", :title => course.short_description %>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -39,8 +39,6 @@
|
|||
<div id="courses-index">
|
||||
<%if @courses%>
|
||||
<%= render_course_hierarchy(@courses)%>
|
||||
<%#= render :partial => 'course', :locals => {:course => @courses.first}%>
|
||||
<%#= "<a herf = 'aaa'>hello</a>".html_safe %>
|
||||
<%end%>
|
||||
</div>
|
||||
|
||||
|
@ -56,10 +54,6 @@
|
|||
</p>
|
||||
<% end %>
|
||||
|
||||
<%# other_formats_links do |f| %>
|
||||
<%#= f.link_to 'Atom', :url => {:key => User.current.rss_key} %>
|
||||
<%# end %>
|
||||
|
||||
<% content_for :sidebar do %>
|
||||
<%= form_tag({}, :method => :get) do %>
|
||||
<h3><%= l(:label_project_plural) %></h3>
|
||||
|
|
|
@ -2162,3 +2162,4 @@ zh:
|
|||
lable_teacher_evaluation_no: 老师还未进行评价
|
||||
lable_teacher_evaluation: 作业综评
|
||||
lable_course_teacher: 主讲老师
|
||||
lable_course_end: 课程学期已结束
|
||||
|
|
Loading…
Reference in New Issue