Project

General

Profile

Feature #13429 » changeset_r6be219a9f21b0d72613184cc440f908b6a165101.diff

Jan from Planio www.plan.io, 2013-03-11 17:05

View differences:

app/views/issues/_history.html.erb
<li><%= string %></li>
<% end %>
</ul>
<% if Setting.thumbnails_enabled? %>
<% thumbnail_attachments = journal.details.map{|d| d.property == 'attachment' and !d.value.blank? and Attachment.find_by_id(d.prop_key)}.select{|a| a and a.thumbnailable? } %>
<% if thumbnail_attachments.any? %>
<div class="thumbnails">
<% thumbnail_attachments.each do |attachment| %>
<div><%= thumbnail_tag(attachment) %></div>
<% end %>
</div>
<% end %>
<% end %>
<% end %>
<%= render_notes(issue, journal, :reply_links => reply_links) unless journal.notes.blank? %>
</div>
public/stylesheets/application.css
div.thumbnails {margin-top:0.6em;}
div.thumbnails div {background:#fff;border:2px solid #ddd;display:inline-block;margin-right:2px;}
div.thumbnails img {margin: 3px;}
#history div.thumbnails {margin-left: 2em;}
p.other-formats { text-align: right; font-size:0.9em; color: #666; }
.other-formats span + span:before { content: "| "; }
(1-1/4)