Code formatting updated for repositories. [SCI-1269]

This commit is contained in:
Matej Zrimšek 2017-05-31 20:28:23 +02:00
parent f8258812ef
commit 9a7048cc7a
3 changed files with 26 additions and 24 deletions

View file

@ -2,7 +2,9 @@
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
<h4 class="modal-title"><%= t("repositories.index.modal_delete.title_html", name: @repository.name) %></h4>
</div>
<div class="modal-body">

View file

@ -1,33 +1,32 @@
<div class="modal fade"
id="rename-repo-modal"
tabindex="-1"
role="dialog">
<div class="modal fade" id="rename-repo-modal" tabindex="-1" role="dialog">
<%= bootstrap_form_for @repository,
url: team_repository_path(id: @repository, format: :json),
remote: true do |f| %>
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title"><%= t("repositories.index.modal_rename.title_html", name: @repository.name ) %></h4>
</div>
<div class="modal-body">
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
<div class="form-group">
<%= f.text_field :name,
label: t("repositories.index.modal_rename.name"),
autofocus: true,
placeholder: t("repositories.index.modal_rename.name_placeholder") %>
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
<h4 class="modal-title"><%= t("repositories.index.modal_rename.title_html", name: @repository.name ) %></h4>
</div>
<div class="modal-body">
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
<div class="form-group">
<%= f.text_field :name,
label: t("repositories.index.modal_rename.name"),
autofocus: true,
placeholder: t("repositories.index.modal_rename.name_placeholder") %>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<%= f.submit t("repositories.index.modal_rename.copy"), class: "btn btn-primary" %>
<button type="button" class="btn btn-default" data-dismiss="modal"><%=t "general.cancel" %></button>
</div>
</div>
<div class="modal-footer">
<%= f.submit t("repositories.index.modal_rename.copy"), class: "btn btn-primary" %>
<button type="button" class="btn btn-default" data-dismiss="modal"><%=t "general.cancel" %></button>
</div>
</div>
</div>
<% end %>
</div>

View file

@ -1,7 +1,8 @@
<% provide(:head_title, t("repositories.index.head_title")) %>
<% if current_team %>
<%= render partial: "repositories/breadcrumbs.html.erb", locals: { teams: @teams, current_team: current_team, type: @type } %>
<%= render partial: "repositories/breadcrumbs.html.erb",
locals: { teams: @teams, current_team: current_team, type: @type } %>
<!-- Nav tabs -->
<% if @repositories.present? %>