scinote-web/app/views/repositories/toolbar/_archive_label.html.erb
aignatov-bio fecaafecf9
Refactor repository toolbar [SCI-6545] (#3943)
Co-authored-by: Anton <anton@scinote.net>
2022-03-18 14:10:34 +01:00

15 lines
482 B
Plaintext

<% if @repository.active? %>
<%= t('repositories.show.archived_view_label.active', repository_name: @repository.name) %>
<% else %>
<table>
<tr>
<td><%= t('repositories.show.archived_view_label.archived_on') %></td>
<td><%= I18n.l(@repository.archived_on, format: :full) %></td>
</tr>
<tr>
<td><%= t('repositories.show.archived_view_label.archived_by') %></td>
<td><%= @repository.archived_by.full_name %></td>
</tr>
</table>
<% end %>