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

2.班级动态下,去掉“班级动态>”
This commit is contained in:
daiao 2016-07-25 18:54:44 +08:00
parent a7b758a417
commit 4646d13234
3 changed files with 10 additions and 10 deletions

View File

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

View File

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

View File

@ -8,11 +8,11 @@
<div class="homepagePostTitle break_word">
<%# 如果有历史版本则提供历史版本下载 %>
<% 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),
:title => file.filename+"\n"+file.description.to_s, :style => "overflow: hidden; white-space: nowrap;text-overflow: ellipsis;",:class => "linkGrey3 f_14" %>
<% 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,
:class => "linkGrey3 f_14",
:style => "overflow: hidden; white-space: nowrap;text-overflow: ellipsis;", :remote=>true %>