3114: Merge branch 'master' into 3114-copy-to-project
[arvados.git] / apps / workbench / app / views / collections / show.html.erb
index 4585a43664b0dd2fa4acbbd2067b070e215cee6c..0d52b088c47a91f59bc1f46092d4a73e3fc51a34 100644 (file)
   </div>
 </div>
 
-<%= render file: 'application/show.html.erb' %>
+<% content_for :tab_line_buttons do %>
+  <span style="padding-left: 1em">Collection storage status:</span>
+  <%= render partial: 'toggle_persist', locals: { uuid: @object.uuid, current_state: (@is_persistent ? 'persistent' : 'cache') } %>
+<% end %>
+
+<%= render file: 'application/show.html.erb', locals: local_assigns %>