diff --git a/app/helpers/welcome_helper.rb b/app/helpers/welcome_helper.rb index beecef3f..329f8474 100644 --- a/app/helpers/welcome_helper.rb +++ b/app/helpers/welcome_helper.rb @@ -82,7 +82,7 @@ module WelcomeHelper ': '.html_safe << link_to(truncate(strip_tags(event.event_description).gsub(/ /,''), length: 30, omission:'...'), event.event_url, :target => "_blank" ) when 'attachment' - str << content_tag('span', '上传了') << content_tag('span', find_all_event_type(event)) << ': '.html_safe << link_to(truncate(event.event_title, length: 30, omission:'...'), event.event_url) << link_to((' ['.html_safe+l(:label_downloads_list).to_s << ']'), project_files_path(event.container)) + str << content_tag('span', '上传了') << content_tag('span', find_all_event_type(event)) << ': '.html_safe << link_to(truncate(event.event_title, length: 30, omission:'...'), event.event_url) << link_to((' ['.html_safe+l(:label_downloads_list).to_s << ']'), project_files_path(event.container), :class => "attachments_list_color") else str << content_tag("span", "更新了") << content_tag("span", find_all_event_type(event)) << ': '.html_safe << link_to(truncate(event.event_title, length: 30, omission:'...'), event.event_url, :target => "_blank" ) end diff --git a/app/views/welcome/index.html.erb b/app/views/welcome/index.html.erb index 85cd06ee..633881b6 100644 --- a/app/views/welcome/index.html.erb +++ b/app/views/welcome/index.html.erb @@ -132,9 +132,10 @@
<%= image_tag url_to_avatar(event.event_author), :class => "avatar-3" %>
+
<%= link_to event.event_author, (user_path(event.event_author) if event.event_author), :style => "color:green;", :target => "_blank" %><%= show_user_content event %> -

<%= time_tag_welcome event.event_datetime %>前     <%= show_event_reply event %>

+

<%= time_tag_welcome event.event_datetime %>     <%= show_event_reply event %>

<% end %> diff --git a/public/stylesheets/welcome.css b/public/stylesheets/welcome.css index fcbe12d5..89e402e6 100644 --- a/public/stylesheets/welcome.css +++ b/public/stylesheets/welcome.css @@ -308,3 +308,6 @@ div#tooltip::after { border-bottom: 1px solid #FFFFFF; border-right: 1px solid #FFFFFF; } +a.attachments_list_color { + color: green; +}