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">
|
|
|
|
<span class="glyphicon glyphicon-exclamation-sign"></span>
|
|
|
|
|
|
|
|
<%= 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">
|
|
|
|
<%= 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',
|
|
|
|
class: 'btn btn-primary' %>
|
|
|
|
<button type="button" class="btn btn-default" data-dismiss="modal"><%= t("general.cancel")%></button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|