OSDN Git Service

add attachment support.
authorAkira Saito <akrstjp@users.sourceforge.jp>
Sat, 16 Aug 2014 04:09:40 +0000 (13:09 +0900)
committerAkira Saito <akrstjp@users.sourceforge.jp>
Sat, 16 Aug 2014 04:09:40 +0000 (13:09 +0900)
app/views/hooks/_quick_view_context.erb

index 5116b7c..79b6cf7 100644 (file)
@@ -1,4 +1,5 @@
 <%
+   extend AttachmentsHelper
    extend CustomFieldsHelper
    extend JournalsHelper
 
@@ -38,6 +39,9 @@
           <i>description is none.</i>
           <% end %>
           </div>
+          <% if issue.attachments.any? %>
+          <%= link_to_attachments @issue, :thumbnails => true %>
+          <% end %>
         </div>
      </div>