Initial commit

This commit is contained in:
Senad Uka
2020-05-31 22:38:19 +02:00
commit 858fafc3c5
1280 changed files with 65918 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
<tr>
<td>
<%= download.name %>
</td>
<td>
<%= download.release_type&.titleize %>
</td>
<td>
<%= download.status.titleize %>
</td>
<td>
<%= download.created_at.strftime("%D %T") %>
</td>
<td class="text-right">
<div class="btn-group">
<%= button_tag t(".actions.manage"), class: "btn btn-light btn-sm dropdown-toggle border", data: { toggle: "dropdown", boundary: "window" }, aria: { haspopup: true, expanded: false } %>
<div class="dropdown-menu dropdown-menu-right">
<% if download.file.attached? %>
<%= link_to fa_icon("download fw", text: "Download"), download.file, class: "dropdown-item", target: :_blank %>
<% end %>
<% if policy(download).destroy? %>
<%= link_to fa_icon("trash fw", text: "Delete"), download_path(download, project_id: download.project.id), class: "dropdown-item", method: :delete, data: { confirm: "Are you sure?" } %>
<% end %>
</div>
</div>
</td>
</tr>