remove special group/show stuff
authorTom Clegg <tom@clinicalfuture.com>
Wed, 10 Jul 2013 03:39:46 +0000 (23:39 -0400)
committerTom Clegg <tom@clinicalfuture.com>
Wed, 10 Jul 2013 03:39:46 +0000 (23:39 -0400)
apps/workbench/app/controllers/groups_controller.rb
apps/workbench/app/views/groups/show.html.erb [deleted file]

index daf8ab94ed60408517b45fbc2d20c3174baa292e..b18fa60b027a74616f6522010fcca18a21b74d1a 100644 (file)
@@ -1,6 +1,4 @@
 class GroupsController < ApplicationController
-  before_filter :ensure_current_user_is_admin
-
   def index
     @groups = Group.limit(10000).all
     @group_uuids = @groups.collect &:uuid
diff --git a/apps/workbench/app/views/groups/show.html.erb b/apps/workbench/app/views/groups/show.html.erb
deleted file mode 100644 (file)
index 3b3a9df..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-<ul class="nav nav-tabs">
-  <li class="active"><a href="#properties" data-toggle="tab">Properties</a></li>
-  <li><a href="#collections" data-toggle="tab">Collections (<%= @collections.count %>)</a></li>
-</ul>
-
-<div class="tab-content">
-  <div id="properties" class="tab-pane fade in active">
-    <%= render partial: 'application/arvados_object' %>
-  </div>
-  <div id="collections" class="tab-pane fade">
-    <table class="table table-condensed table-hover">
-      <thead>
-        <tr>
-          <th style="text-align: right">size</th>
-          <th>names</th>
-          <th>collection</th>
-          <th>keep</th>
-        </tr>
-      </thead><tbody>
-        <% if @collections then @collections.each do |collection| %>
-        <tr>
-          <td style="text-align: right">
-            <%= raw(human_readable_bytes_html(collection.total_bytes)) %>
-          </td><td>
-            <% if @pgp_hu_id[collection.uuid] %>
-            <a class="label" href="https://my.personalgenomes.org/profile/<%= @pgp_hu_id[collection.uuid] %>"><tt><%= @pgp_hu_id[collection.uuid] %></tt></a>
-            <% end %>
-            <% (@names[collection.uuid] || []).compact.each do |name| %>
-            <%= name %><br />
-            <% end %>
-          </td><td>
-            <%= link_to_if_arvados_object collection %>
-          </td><td>
-            <% if @keep_flag[collection.uuid] %>
-            <span class="badge badge-success">&#x2714;</span>
-            <% else %>
-            <span class="badge badge-warning">&#x2716;</span>
-            <% end %>
-          </td>
-        </tr>
-        <% end; end %>
-      </tbody>
-      <tfoot>
-        <tr class="info" style="border-top:2px solid #000">
-          <td style="text-align: right">
-            <%= raw(human_readable_bytes_html(@collections_total_bytes)) %>
-          </td>
-          <td></td>
-          <td></td>
-          <td></td>
-        </tr>
-      </tfoot>
-    </table>
-  </div>
-</div>