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
12 12
       <li><%= string %></li>
13 13
      <% end %>
14 14
    </ul>
15
    <% if Setting.thumbnails_enabled? %>
16
      <% 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? } %>
17
      <% if thumbnail_attachments.any? %>
18
        <div class="thumbnails">
19
          <% thumbnail_attachments.each do |attachment| %>
20
          <div><%= thumbnail_tag(attachment) %></div>
21
          <% end %>
22
        </div>
23
      <% end %>
24
    <% end %>
15 25
    <% end %>
16 26
    <%= render_notes(issue, journal, :reply_links => reply_links) unless journal.notes.blank? %>
17 27
  </div>
public/stylesheets/application.css
527 527
div.thumbnails {margin-top:0.6em;}
528 528
div.thumbnails div {background:#fff;border:2px solid #ddd;display:inline-block;margin-right:2px;}
529 529
div.thumbnails img {margin: 3px;}
530
#history div.thumbnails {margin-left: 2em;}
530 531

  
531 532
p.other-formats { text-align: right; font-size:0.9em; color: #666; }
532 533
.other-formats span + span:before { content: "| "; }
(1-1/4)