1.修改资源课程名称,竟可能显示全。

2.班级动态下,去掉“班级动态>”
daiao_dev
daiao 9 years ago
parent a7b758a417
commit 4646d13234

@ -595,19 +595,19 @@ module CoursesHelper
def get_acts_list_type type def get_acts_list_type type
case type case type
when "homework" when "homework"
">" + l(:label_homework_acts) l(:label_homework_acts)
when "news" when "news"
">" + l(:label_news_acts) l(:label_news_acts)
when "attachment" when "attachment"
">" + l(:label_attachment_acts) l(:label_attachment_acts)
when "message" when "message"
">" + l(:label_message_acts) l(:label_message_acts)
when "journalsForMessage" when "journalsForMessage"
">" + l(:label_journalsForMessage_acts) l(:label_journalsForMessage_acts)
when "poll" when "poll"
">" + l(:label_poll_acts) l(:label_poll_acts)
else else
">" + l(:label_all_cats) l(:label_all_cats)
end end
end end

@ -9,7 +9,7 @@
<input type="hidden" value="<%= @type%>" name="type" id="user_activities_type"> <input type="hidden" value="<%= @type%>" name="type" id="user_activities_type">
<div class="homepageRight mt0 ml10"> <div class="homepageRight mt0 ml10">
<div class="homepageRightBanner"> <div class="homepageRightBanner">
<div class="NewsBannerName">班级动态 <div class="NewsBannerName">
<%= get_acts_list_type @type %></div> <%= get_acts_list_type @type %></div>
<ul class="resourcesSelect"> <ul class="resourcesSelect">
<li class="resourcesSelected"><a href="javascript:void(0);" class="resourcesIcon"></a> <li class="resourcesSelected"><a href="javascript:void(0);" class="resourcesIcon"></a>

@ -8,11 +8,11 @@
<div class="homepagePostTitle break_word"> <div class="homepagePostTitle break_word">
<%# 如果有历史版本则提供历史版本下载 %> <%# 如果有历史版本则提供历史版本下载 %>
<% if file.attachment_histories.count == 0 %> <% if file.attachment_histories.count == 0 %>
<%= link_to truncate(file.filename,length: 40, omission: '...'), <%= link_to truncate(file.filename,length: 70, omission: '...'),
download_named_attachment_path(file.id, file.filename), download_named_attachment_path(file.id, file.filename),
:title => file.filename+"\n"+file.description.to_s, :style => "overflow: hidden; white-space: nowrap;text-overflow: ellipsis;",:class => "linkGrey3 f_14" %> :title => file.filename+"\n"+file.description.to_s, :style => "overflow: hidden; white-space: nowrap;text-overflow: ellipsis;",:class => "linkGrey3 f_14" %>
<% else %> <% else %>
<%= link_to truncate(file.filename,length: 40, omission: '...'), attachment_history_download_path(file.id), <%= link_to truncate(file.filename,length: 70, omission: '...'), attachment_history_download_path(file.id),
:title => file.filename+"\n"+file.description.to_s, :title => file.filename+"\n"+file.description.to_s,
:class => "linkGrey3 f_14", :class => "linkGrey3 f_14",
:style => "overflow: hidden; white-space: nowrap;text-overflow: ellipsis;", :remote=>true %> :style => "overflow: hidden; white-space: nowrap;text-overflow: ellipsis;", :remote=>true %>

Loading…
Cancel
Save