|
|
|
@ -5,7 +5,7 @@
|
|
|
|
|
<%if is_float%>
|
|
|
|
|
<div style="max-width:55%;white-space: nowrap; overflow: hidden; text-overflow: ellipsis;float: left;">
|
|
|
|
|
<% end%>
|
|
|
|
|
<span title="<%= attachment.filename%>" id = "attachment_">
|
|
|
|
|
<span title="<%= attachment.filename %>" id = "attachment_">
|
|
|
|
|
<% if options[:length] %>
|
|
|
|
|
<%= link_to_short_attachment attachment, :class => ' link_file_board', :download => true,:length => options[:length] -%>
|
|
|
|
|
<% else %>
|
|
|
|
@ -53,7 +53,7 @@
|
|
|
|
|
<% end %>
|
|
|
|
|
<% if options[:author] %>
|
|
|
|
|
<span class="author" title="<%= attachment.author%>">
|
|
|
|
|
<%= link_to h(truncate(attachment.author.name, length: 10, omission: '...')),user_path(attachment.author) %>,
|
|
|
|
|
<%= link_to h(truncate(attachment.author.name, length: 10, omission: '...')),user_path(attachment.author),:class => "c_orange ml20" %>,
|
|
|
|
|
<%= format_time(attachment.created_on) %>
|
|
|
|
|
</span>
|
|
|
|
|
<% end %>
|
|
|
|
@ -62,11 +62,9 @@
|
|
|
|
|
<% if defined?(thumbnails) && thumbnails %>
|
|
|
|
|
<% images = attachments.select(&:thumbnailable?) %>
|
|
|
|
|
<% if images.any? %>
|
|
|
|
|
<div class="thumbnails">
|
|
|
|
|
<% images.each do |attachment| %>
|
|
|
|
|
<div><%= thumbnail_tag(attachment) %></div>
|
|
|
|
|
<div class="pro_pic fl " width="100" height="73"><%= thumbnail_issue_tag(attachment) %></div>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|