diff --git a/app/views/attachments/_links.html.erb b/app/views/attachments/_links.html.erb index de43dce4c..698198120 100644 --- a/app/views/attachments/_links.html.erb +++ b/app/views/attachments/_links.html.erb @@ -12,7 +12,7 @@ :filename => attachment.filename%> <% end %> - <%= h(truncate(" - #{attachment.description}", length: 20, omission: '...')) unless attachment.description.blank? %> + <%= h(truncate(" - #{attachment.description}", length: 15, omission: '...')) unless attachment.description.blank? %> (<%= number_to_human_size attachment.filesize %>) <% if options[:deletable] %> @@ -34,7 +34,10 @@ <% end %> <% if options[:author] %> - <%= link_to h(attachment.author),user_path(attachment.author) %>, <%= format_time(attachment.created_on) %> + + <%= link_to h(truncate(attachment.author.name, length: 10, omission: '...')),user_path(attachment.author) %>, + <%= format_time(attachment.created_on) %> + <% end %>

<% end %> diff --git a/app/views/contests/_new_softapplication.html.erb b/app/views/contests/_new_softapplication.html.erb index 5fdefd955..3e4c0c9e0 100644 --- a/app/views/contests/_new_softapplication.html.erb +++ b/app/views/contests/_new_softapplication.html.erb @@ -1,51 +1,77 @@ <%#= error_messages_for 'softapplication' %> -