Commit 2585b425 authored by Phil Hughes's avatar Phil Hughes Committed by Valery Sizov

Fixed conflicts

parent f3fc7bfe
...@@ -59,18 +59,11 @@ ...@@ -59,18 +59,11 @@
%strong Public builds %strong Public builds
.help-block Allow everyone to access builds for Public and Internal projects .help-block Allow everyone to access builds for Public and Internal projects
<<<<<<< HEAD
- if @project.mirror? - if @project.mirror?
= render 'shared/mirror_trigger_builds_setting', f: f = render 'shared/mirror_trigger_builds_setting', f: f
.form-group
= f.label :runners_token, "Runners token", class: 'control-label'
.col-sm-10
= f.text_field :runners_token, class: "form-control", placeholder: 'xEeFCaDAB89'
%p.help-block The secure token used to checkout project.
=======
.form-group.append-bottom-0 .form-group.append-bottom-0
= f.label :runners_token, "Runners token", class: 'label-light' = f.label :runners_token, "Runners token", class: 'label-light'
= f.text_field :runners_token, class: "form-control", placeholder: 'xEeFCaDAB89' = f.text_field :runners_token, class: "form-control", placeholder: 'xEeFCaDAB89'
%p.help-block The secure token used to checkout project. %p.help-block The secure token used to checkout project.
>>>>>>> e6389dfee621090706d43d3107339934ca42f0ff
%fieldset.issues-feature %fieldset.features.append-bottom-0.issues-feature
%legend %h5.prepend-top-0
Issues: Issues
.form-group .form-group
= f.label :issues_template, class: 'control-label' do = f.label :issues_template, class: 'label-light' do
Description template Description template
.col-sm-10
= f.text_area :issues_template, class: "form-control", rows: 3 = f.text_area :issues_template, class: "form-control", rows: 3
%fieldset.merge-request-feature %fieldset.merge-request-feature.append-bottom-default
%legend %h5.prepend-top-0
Merge requests: Merge requests
.form-group .form-group
= label_tag :merge_method_merge, class: 'control-label' do = label_tag :merge_method_merge, class: 'label-light' do
Merge method Merge method
.col-sm-10
.radio .radio
= label_tag :project_merge_method_merge do = label_tag :project_merge_method_merge do
= f.radio_button :merge_method, :merge, class: "js-merge-method-radio" = f.radio_button :merge_method, :merge, class: "js-merge-method-radio"
...@@ -38,21 +37,18 @@ ...@@ -38,21 +37,18 @@
When the branch has not been rebased, the user is given the option to do so. When the branch has not been rebased, the user is given the option to do so.
.form-group .form-group
= f.label :merge_requests_template, class: 'control-label' do = f.label :merge_requests_template, class: 'label-light' do
Description template Description template
.col-sm-10
= f.text_area :merge_requests_template, class: "form-control", rows: 3 = f.text_area :merge_requests_template, class: "form-control", rows: 3
.form-group .form-group
= f.label :approvals_before_merge, class: 'control-label' do = f.label :approvals_before_merge, class: 'label-light' do
Approvals required Approvals required
.col-sm-10
= f.number_field :approvals_before_merge, class: "form-control", min: 0 = f.number_field :approvals_before_merge, class: "form-control", min: 0
.help-block .help-block
Number of users to approve a merge request before it can be accepted. 0 - approving is disabled Number of users to approve a merge request before it can be accepted. 0 - approving is disabled
.form-group.reset-approvals-on-push .form-group.reset-approvals-on-push
.col-sm-offset-2.col-sm-10
.checkbox .checkbox
= f.label :reset_approvals_on_push do = f.label :reset_approvals_on_push do
= f.check_box :reset_approvals_on_push = f.check_box :reset_approvals_on_push
...@@ -60,9 +56,8 @@ ...@@ -60,9 +56,8 @@
.help-block Approvals are reset when new data is pushed to the merge request .help-block Approvals are reset when new data is pushed to the merge request
.form-group .form-group
= f.label :approver_ids, class: 'control-label' do = f.label :approver_ids, class: 'label-light' do
Approvers Approvers
.col-sm-10
= users_select_tag("project[approver_ids]", multiple: true, class: 'input-large', scope: :all, email_user: true) = users_select_tag("project[approver_ids]", multiple: true, class: 'input-large', scope: :all, email_user: true)
.help-block .help-block
Add an approver suggestion for each merge request Add an approver suggestion for each merge request
......
...@@ -7,74 +7,6 @@ ...@@ -7,74 +7,6 @@
= form_for [@project.namespace.becomes(Namespace), @project], remote: true, html: { multipart: true, class: "edit-project" }, authenticity_token: true do |f| = form_for [@project.namespace.becomes(Namespace), @project], remote: true, html: { multipart: true, class: "edit-project" }, authenticity_token: true do |f|
%fieldset.append-bottom-0 %fieldset.append-bottom-0
.form-group .form-group
<<<<<<< HEAD
= f.label :tag_list, "Tags", class: 'control-label'
.col-sm-10
= f.text_field :tag_list, value: @project.tag_list.to_s, maxlength: 2000, class: "form-control"
%p.help-block Separate tags with commas.
%fieldset.features
%legend
Features:
.form-group
.col-sm-offset-2.col-sm-10
.checkbox
= f.label :issues_enabled do
= f.check_box :issues_enabled
%strong Issues
%br
%span.descr Lightweight issue tracking system for this project
.form-group
.col-sm-offset-2.col-sm-10
.checkbox
= f.label :merge_requests_enabled do
= f.check_box :merge_requests_enabled
%strong Merge Requests
%br
%span.descr Submit changes to be merged upstream
.form-group
.col-sm-offset-2.col-sm-10
.checkbox
= f.label :builds_enabled do
= f.check_box :builds_enabled
%strong Builds
%br
%span.descr Test and deploy your changes before merge
.form-group
.col-sm-offset-2.col-sm-10
.checkbox
= f.label :wiki_enabled do
= f.check_box :wiki_enabled
%strong Wiki
%br
%span.descr Pages for project documentation
.form-group
.col-sm-offset-2.col-sm-10
.checkbox
= f.label :snippets_enabled do
= f.check_box :snippets_enabled
%strong Snippets
%br
%span.descr Share code pastes with others out of git repository
- if Gitlab.config.registry.enabled
.form-group
.col-sm-offset-2.col-sm-10
.checkbox
= f.label :container_registry_enabled do
= f.check_box :container_registry_enabled
%strong Container Registry
%br
%span.descr Enable Container Registry for this repository
= render 'issues_settings', f: f
= render 'merge_request_settings', f: f
= render 'builds_settings', f: f
=======
= f.label :name, class: 'label-light' do = f.label :name, class: 'label-light' do
Project name Project name
= f.text_field :name, class: "form-control", id: "project_name_edit" = f.text_field :name, class: "form-control", id: "project_name_edit"
...@@ -83,59 +15,9 @@ ...@@ -83,59 +15,9 @@
Project description Project description
%span.light (optional) %span.light (optional)
= f.text_area :description, class: "form-control", rows: 3, maxlength: 250 = f.text_area :description, class: "form-control", rows: 3, maxlength: 250
>>>>>>> e6389dfee621090706d43d3107339934ca42f0ff
- unless @project.empty_repo? - unless @project.empty_repo?
.form-group .form-group
<<<<<<< HEAD
.col-sm-offset-2.col-sm-10
- if @project.avatar?
= project_icon("#{@project.namespace.to_param}/#{@project.to_param}", alt: '', class: 'avatar project-avatar s160')
%p.light
- if @project.avatar_in_git
Project avatar in repository: #{ @project.avatar_in_git }
%p.light
- if @project.avatar?
You can change your project avatar here
- else
You can upload a project avatar here
%a.choose-btn.btn.btn-sm.js-choose-project-avatar-button
%i.icon-paper-clip
%span Choose File ...
&nbsp;
%span.file_name.js-avatar-filename File name...
= f.file_field :avatar, class: "js-project-avatar-input hidden"
.light The maximum file size allowed is 200KB.
- if @project.avatar?
%hr
= link_to 'Remove avatar', namespace_project_avatar_path(@project.namespace, @project), data: { confirm: "Project avatar will be removed. Are you sure?"}, method: :delete, class: "btn btn-remove btn-sm remove-avatar"
.form-actions
= f.submit 'Save changes', class: "btn btn-save"
.danger-settings
.panel.panel-default
.panel-heading Housekeeping
.errors-holder
.panel-body
%p
Runs a number of housekeeping tasks within the current repository,
such as compressing file revisions and removing unreachable objects.
%br
.form-actions
= link_to 'Housekeeping', housekeeping_namespace_project_path(@project.namespace, @project),
method: :post, class: "btn btn-default"
- if can? current_user, :archive_project, @project
- if @project.archived?
.panel.panel-success
.panel-heading
Unarchive project
.panel-body
%p
Unarchiving the project will mark its repository as active.
=======
= f.label :default_branch, "Default Branch", class: 'label-light' = f.label :default_branch, "Default Branch", class: 'label-light'
= f.select(:default_branch, @project.repository.branch_names, {}, {class: 'select2 select-wide'}) = f.select(:default_branch, @project.repository.branch_names, {}, {class: 'select2 select-wide'})
.form-group.project-visibility-level-holder .form-group.project-visibility-level-holder
...@@ -163,7 +45,6 @@ ...@@ -163,7 +45,6 @@
= f.label :issues_enabled do = f.label :issues_enabled do
= f.check_box :issues_enabled = f.check_box :issues_enabled
%strong Issues %strong Issues
>>>>>>> e6389dfee621090706d43d3107339934ca42f0ff
%br %br
%span.descr Lightweight issue tracking system for this project %span.descr Lightweight issue tracking system for this project
.form-group .form-group
...@@ -203,6 +84,8 @@ ...@@ -203,6 +84,8 @@
%br %br
%span.descr Enable Container Registry for this repository %span.descr Enable Container Registry for this repository
%hr %hr
= render 'issues_settings', f: f
= render 'merge_request_settings', f: f
= render 'builds_settings', f: f = render 'builds_settings', f: f
%hr %hr
%fieldset.features.append-bottom-default %fieldset.features.append-bottom-default
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment