mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-10 21:26:07 +10:00
Remove unnecesary wrapper elements
This commit is contained in:
@@ -192,10 +192,6 @@
|
||||
line-height: 1.1;
|
||||
}
|
||||
|
||||
.merge-request-form-info {
|
||||
padding-top: 15px;
|
||||
}
|
||||
|
||||
// hide mr close link for inline diff comment form
|
||||
.diff-file .close-mr-link,
|
||||
.diff-file .reopen-mr-link {
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
.form-actions
|
||||
.commit-button-annotation
|
||||
= button_tag 'Commit Changes',
|
||||
class: 'btn commit-btn js-commit-button btn-create'
|
||||
= button_tag 'Commit Changes', class: 'btn commit-btn js-commit-button btn-create'
|
||||
= link_to 'Cancel', cancel_path,
|
||||
class: 'btn btn-cancel', data: {confirm: leave_edit_message}
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
%div.issue-form-holder
|
||||
= form_for [@project.namespace.becomes(Namespace), @project, @issue], html: { class: 'form-horizontal issue-form gfm-form' } do |f|
|
||||
= render 'shared/issuable/form', f: f, issuable: @issue
|
||||
= form_for [@project.namespace.becomes(Namespace), @project, @issue], html: { class: 'form-horizontal issue-form gfm-form js-requires-input' } do |f|
|
||||
= render 'shared/issuable/form', f: f, issuable: @issue
|
||||
|
||||
:javascript
|
||||
$('.assign-to-me-link').on('click', function(e){
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
= form_for [@project.namespace.becomes(Namespace), @project, @merge_request], html: { class: 'merge-request-form form-horizontal gfm-form js-requires-input' } do |f|
|
||||
.merge-request-form-info
|
||||
= render 'shared/issuable/form', f: f, issuable: @merge_request
|
||||
= render 'shared/issuable/form', f: f, issuable: @merge_request
|
||||
|
||||
:javascript
|
||||
$('.assign-to-me-link').on('click', function(e){
|
||||
|
||||
@@ -11,12 +11,11 @@
|
||||
= link_to 'Change branches', mr_change_branches_path(@merge_request)
|
||||
%hr
|
||||
= form_for [@project.namespace.becomes(Namespace), @project, @merge_request], html: { class: 'merge-request-form form-horizontal gfm-form js-requires-input' } do |f|
|
||||
.merge-request-form-info
|
||||
= render 'shared/issuable/form', f: f, issuable: @merge_request
|
||||
= f.hidden_field :source_project_id
|
||||
= f.hidden_field :source_branch
|
||||
= f.hidden_field :target_project_id
|
||||
= f.hidden_field :target_branch
|
||||
= render 'shared/issuable/form', f: f, issuable: @merge_request
|
||||
= f.hidden_field :source_project_id
|
||||
= f.hidden_field :source_branch
|
||||
= f.hidden_field :target_project_id
|
||||
= f.hidden_field :target_branch
|
||||
|
||||
.mr-compare.merge-request
|
||||
%ul.merge-request-tabs
|
||||
|
||||
@@ -6,6 +6,5 @@
|
||||
= render 'projects/notes/hints'
|
||||
|
||||
.note-form-actions
|
||||
.buttons
|
||||
= f.submit 'Save Comment', class: 'btn btn-primary btn-save btn-grouped js-comment-button'
|
||||
= link_to 'Cancel', '#', class: 'btn btn-cancel note-edit-cancel'
|
||||
= f.submit 'Save Comment', class: 'btn btn-primary btn-save btn-grouped js-comment-button'
|
||||
= link_to 'Cancel', '#', class: 'btn btn-cancel note-edit-cancel'
|
||||
|
||||
@@ -12,8 +12,7 @@
|
||||
= render 'projects/notes/hints'
|
||||
.error-alert
|
||||
|
||||
.note-form-actions
|
||||
.buttons.clearfix
|
||||
= f.submit 'Add Comment', class: "btn btn-green comment-btn btn-grouped js-comment-button"
|
||||
= yield(:note_actions)
|
||||
%a.btn.grouped.js-close-discussion-note-form Cancel
|
||||
.note-form-actions.clearfix
|
||||
= f.submit 'Add Comment', class: "btn btn-create comment-btn btn-grouped js-comment-button"
|
||||
= yield(:note_actions)
|
||||
%a.btn.btn-cancel.js-close-discussion-note-form Cancel
|
||||
|
||||
Reference in New Issue
Block a user