In theory this works but I need a keep server to test it.
authorPeter Amstutz <peter.amstutz@curoverse.com>
Mon, 3 Mar 2014 13:55:06 +0000 (08:55 -0500)
committerPeter Amstutz <peter.amstutz@curoverse.com>
Mon, 3 Mar 2014 13:55:06 +0000 (08:55 -0500)
apps/workbench/app/views/collections/_show_files.html.erb

index 08e0ff6fb46ff222beb350731c2defde917dfb31..357c8414f4c42c0a74b6a0e8be16b1d319a56dbf 100644 (file)
@@ -1,3 +1,10 @@
+<% content_for :css do %>
+.file-list-inline-image {
+  height: 4em; 
+  width: auto
+}
+<% end %>
+
 <table class="table table-condensed table-fixedlayout">
   <colgroup>
     <col width="4%" />
@@ -34,7 +41,7 @@
 
       <td>
         <%= link_to((if /\.(jpg|jpeg|gif|png)$/.match(file[1]) then
-                       image_tag "#{url_for @object}/#{file_path}"
+                       image_tag "#{url_for @object}/#{file_path}", class: "file-list-inline-image"
                      else
                        file[1]
                      end),