[ARVADOS] updated: b6ee74d757dc98b558dfdb420be46d0b954dc446

git at public.curoverse.com git at public.curoverse.com
Thu Mar 6 08:49:47 EST 2014


Summary of changes:
 .../app/views/collections/_show_files.html.erb     |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

       via  b6ee74d757dc98b558dfdb420be46d0b954dc446 (commit)
      from  f7bec4b4fde3c9cdec0823719f4d0806ee27021a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit b6ee74d757dc98b558dfdb420be46d0b954dc446
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date:   Thu Mar 6 08:50:46 2014 -0500

    Made regex case-insensitive and added svg to list of extensions.

diff --git a/apps/workbench/app/views/collections/_show_files.html.erb b/apps/workbench/app/views/collections/_show_files.html.erb
index d1c4b80..15daaf7 100644
--- a/apps/workbench/app/views/collections/_show_files.html.erb
+++ b/apps/workbench/app/views/collections/_show_files.html.erb
@@ -40,7 +40,7 @@
       </td>
 
       <td>
-        <%= link_to((if /\.(jpg|jpeg|gif|png)$/.match(file[1]) then
+        <%= link_to((if /\.(jpg|jpeg|gif|png|svg)$/i.match(file[1]) then
                        image_tag "#{url_for @object}/#{file_path}", class: "file-list-inline-image"
                      else
                        file[1]

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list