进入附件列表

This commit is contained in:
yanxd 2013-12-17 18:25:51 +08:00
parent f8f5ed3f9a
commit 4d2fd01cf9
3 changed files with 3 additions and 2 deletions

View File

@ -79,7 +79,7 @@ module WelcomeHelper
when 'reply' ,'Reply', 'Memo'
str << content_tag("span", "发表了") << content_tag("span", find_all_event_type(event)) << ':&nbsp;'.html_safe << link_to(truncate(strip_tags(event.event_description), length: 30, omission:'...'), event.event_url)
when 'attachment'
str << content_tag('span', '上传了') << content_tag('span', find_all_event_type(event)) << ':&nbsp;'.html_safe << link_to(truncate(event.event_title, length: 30, omission:'...'), project_files_path(event.container)) #<< link_to(('&nbsp;'.html_safe+l(:button_download)), event.event_url)
str << content_tag('span', '上传了') << content_tag('span', find_all_event_type(event)) << ':&nbsp;'.html_safe << link_to(truncate(event.event_title, length: 30, omission:'...'), event.event_url) << link_to(('&nbsp;['.html_safe+l(:label_downloads_list).to_s << ']'), project_files_path(event.container))
else
str << content_tag("span", "更新了") << content_tag("span", find_all_event_type(event)) << ':&nbsp;'.html_safe << link_to(truncate(event.event_title, length: 30, omission:'...'), event.event_url)
end

View File

@ -1581,6 +1581,6 @@ en:
label_tags_forum_description: Forum description
label_tags_forum: Call forum
label_memo_locked: 'Topic is locked'
label_downloads_list: enter file list.

View File

@ -1747,3 +1747,4 @@ zh:
label_tags_forum: 贴吧名称
label_project_module_forums: 公共贴吧
label_memo_locked: 帖子已被锁定
label_downloads_list: 进入附件列表