|
|
|
@ -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>
|
|
|
|
|
|
|
|
|
|