Skip to content
This repository has been archived by the owner on Mar 24, 2020. It is now read-only.

Commit

Permalink
test aeon code.
Browse files Browse the repository at this point in the history
  • Loading branch information
hweng committed Jun 26, 2019
1 parent 20ef28b commit ba0fd94
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/views/dams_objects/_admin_download.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,19 @@
%>


<% if !(current_user.work_authorizations_count > 0) %>

<div class="etc-menu">

<%= link_to embed_glyph, "#embedLink-#{component_id}", class:etc_menu_item_class, role:'button', :data => { :toggle => 'modal' }, title:'Embed' %>
<% if can? :update, @document then %>
<%= link_to adl_glyph, downloadFilePath, :rel => 'nofollow', class:etc_menu_item_class, title:'Download File' %>
<% elsif can?(:read, @document) && can_download?(@document) && !downloadDerivativePath.nil?%>
<%if current_user && current_user.provider != 'anonymous' %>
<% if !(current_user.work_authorizations_count > 0) %>
<%= link_to adl_glyph, downloadDerivativePath, :rel => 'nofollow', class:etc_menu_item_class, title:'Download File' %>
<% end %>
<% end %>
<% end %>

</div>
Expand Down
2 changes: 2 additions & 0 deletions app/views/dams_objects/_data_viewer.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@

<div class="form-actions dams-download-button">
<% if can?(:edit, @document) || can?(:read, @document) && can_download?(@document)%>
<%if current_user && current_user.provider != 'anonymous' %>
<% if !(current_user.work_authorizations_count > 0) %>
<a id="data-view-file" class="btn <%=btnColor%> pull-right" href="<%= viewFilePath %>"><i class="glyphicon glyphicon-eye-open icon-white"></i> View file</a>
<a id="data-download-file" class="btn btn-link pull-left btn-mini hidden-phone" href="<%= filePath %>" rel="nofollow"><i class="glyphicon glyphicon-download-alt"></i> Download file</a>
<a id="data-download-file-phone" class="btn pull-left btn-mini visible-phone" href="<%= filePath %>" rel="nofollow"><i class="glyphicon glyphicon-download-alt"></i> Download file</a>
<% end %>
<% end %>
<% end %>
<% if can? :update, @document%>
<% if (defined?(sourcefilePath) && !sourcefilePath.nil? && sourcefilePath != filePath)%>
Expand Down

0 comments on commit ba0fd94

Please sign in to comment.