2017-05-30 21:11:28 +08:00
|
|
|
<div class="modal fade" id="delete-repo-modal" tabindex="-1" role="dialog">
|
2017-05-30 21:09:09 +08:00
|
|
|
<div class="modal-dialog" role="document">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
2017-06-01 02:28:23 +08:00
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
|
|
<span aria-hidden="true">×</span>
|
|
|
|
</button>
|
2017-05-30 21:11:28 +08:00
|
|
|
<h4 class="modal-title"><%= t("repositories.index.modal_delete.title_html", name: @repository.name) %></h4>
|
2017-05-30 21:09:09 +08:00
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
2017-05-30 21:11:28 +08:00
|
|
|
<p><%= t("repositories.index.modal_delete.message_html", name: @repository.name) %></p>
|
2017-05-30 21:09:09 +08:00
|
|
|
<div class="alert alert-danger" role="alert">
|
2020-01-21 22:21:40 +08:00
|
|
|
<span class="fas fa-exclamation-triangle"></span>
|
2017-05-30 21:09:09 +08:00
|
|
|
|
|
|
|
<%= t("repositories.index.modal_delete.alert_heading") %>
|
|
|
|
<ul>
|
|
|
|
<li><%= t("repositories.index.modal_delete.alert_line_1") %></li>
|
|
|
|
<li><%= t("repositories.index.modal_delete.alert_line_2") %></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
2018-04-25 19:57:12 +08:00
|
|
|
<button type="button" class="btn btn-default" data-dismiss="modal"><%= t("general.cancel")%></button>
|
2017-05-30 21:09:09 +08:00
|
|
|
<%= link_to t('repositories.index.modal_delete.delete'),
|
2017-05-30 21:11:28 +08:00
|
|
|
team_repository_path(id: @repository),
|
2017-05-30 21:09:09 +08:00
|
|
|
id: "confirm-repo-delete",
|
|
|
|
method: :delete,
|
|
|
|
type: 'button',
|
2018-04-25 19:57:12 +08:00
|
|
|
class: 'btn btn-danger' %>
|
2017-05-30 21:09:09 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|