Commit 5992e915 authored by Alfredo Sumaran's avatar Alfredo Sumaran

Fix haml lint offenses

parent 447b4100
...@@ -6,17 +6,17 @@ ...@@ -6,17 +6,17 @@
= form_tag admin_email_path, class: 'form-horizontal', id: 'new-admin-email' do = form_tag admin_email_path, class: 'form-horizontal', id: 'new-admin-email' do
.form-group .form-group
%label.control-label{for: :subject} Subject %label.control-label{ for: :subject } Subject
.col-sm-10 .col-sm-10
= text_field_tag :subject, '', class: 'form-control', required: true = text_field_tag :subject, '', class: 'form-control', required: true
.form-group .form-group
%label.control-label{for: :body} Body %label.control-label{ for: :body } Body
.col-sm-10 .col-sm-10
= text_area_tag :body, '', class: 'form-control', rows: 15, required: true = text_area_tag :body, '', class: 'form-control', rows: 15, required: true
.form-group .form-group
%label.control-label{for: :recipients} Recipient group %label.control-label{ for: :recipients } Recipient group
.col-sm-10 .col-sm-10
= admin_email_select_tag(:recipients) = admin_email_select_tag(:recipients)
.form-actions .form-actions
......
= form_for geo_node, as: :geo_node, url: admin_geo_nodes_path, html: { class: 'form-horizontal' } do |f| = form_for geo_node, as: :geo_node, url: admin_geo_nodes_path, html: { class: 'form-horizontal' } do |f|
-if geo_node.errors.any? - if geo_node.errors.any?
.alert.alert-danger .alert.alert-danger
- geo_node.errors.full_messages.each do |msg| - geo_node.errors.full_messages.each do |msg|
%p= msg %p= msg
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
= render :partial => 'form', locals: {geo_node: @node} if Gitlab::Geo.license_allows? = render :partial => 'form', locals: {geo_node: @node} if Gitlab::Geo.license_allows?
-if @nodes.any? - if @nodes.any?
.panel.panel-default .panel.panel-default
.panel-heading .panel-heading
Geo nodes (#{@nodes.count}) Geo nodes (#{@nodes.count})
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
#{@license.expires_at} #{@license.expires_at}
\. \.
The The
%a{href: 'https://about.gitlab.com/license-faq/'}true-up model %a{ href: 'https://about.gitlab.com/license-faq/' } true-up model
allows having more users, and additional users will incur a retroactive charge on renewal. allows having more users, and additional users will incur a retroactive charge on renewal.
.col-sm-4 .col-sm-4
.light-well .light-well
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
%h1.center= number_with_delimiter users_over_license %h1.center= number_with_delimiter users_over_license
%hr %hr
The The
%a{href: 'https://about.gitlab.com/license-faq/'}true-up model %a{ href: 'https://about.gitlab.com/license-faq/' } true-up model
has a retroactive charge for these users at the next renewal. If you want to update your has a retroactive charge for these users at the next renewal. If you want to update your
license sooner to prevent this, please contact license sooner to prevent this, please contact
#{mail_to 'sales@gitlab.com'}. #{mail_to 'sales@gitlab.com'}.
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
%hr.clearfix %hr.clearfix
= form_for [:admin, @push_rule] do |f| = form_for [:admin, @push_rule] do |f|
-if @push_rule.errors.any? - if @push_rule.errors.any?
.alert.alert-danger .alert.alert-danger
- @push_rule.errors.full_messages.each do |msg| - @push_rule.errors.full_messages.each do |msg|
%p= msg %p= msg
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
= render 'devise/sessions/new_crowd' = render 'devise/sessions/new_crowd'
- if kerberos_enabled? - if kerberos_enabled?
.login-box.tab-pane{id: "kerberos", role: 'tabpanel', class: (:active unless crowd_enabled? || ldap_enabled?)} .login-box.tab-pane{ id: "kerberos", role: 'tabpanel', class: (:active unless crowd_enabled? || ldap_enabled?) }
.login-body .login-body
= render 'devise/sessions/new_kerberos' = render 'devise/sessions/new_kerberos'
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
%li.active %li.active
= link_to "Crowd", "#crowd", 'data-toggle' => 'tab' = link_to "Crowd", "#crowd", 'data-toggle' => 'tab'
- if kerberos_enabled? - if kerberos_enabled?
%li{class: (:active unless crowd_enabled? || ldap_enabled?)} %li{ class: (:active unless crowd_enabled? || ldap_enabled?) }
= link_to "Kerberos", "#kerberos", 'data-toggle' => 'tab' = link_to "Kerberos", "#kerberos", 'data-toggle' => 'tab'
- @ldap_servers.each_with_index do |server, i| - @ldap_servers.each_with_index do |server, i|
%li{ class: (:active if i.zero? && !crowd_enabled?) } %li{ class: (:active if i.zero? && !crowd_enabled?) }
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
.sub-header-block .sub-header-block
.pull-right .pull-right
.dropdown.inline .dropdown.inline
%button.dropdown-toggle.btn{type: 'button', 'data-toggle' => 'dropdown'} %button.dropdown-toggle.btn{ type: 'button', 'data-toggle' => 'dropdown' }
= icon('calendar-o') = icon('calendar-o')
%b.caret %b.caret
%ul.dropdown-menu.dropdown-menu-align-right %ul.dropdown-menu.dropdown-menu-align-right
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
.col-md-8 .col-md-8
%div %div
%p.light Push events per group member %p.light Push events per group member
%canvas#push{height: 250} %canvas#push{ height: 250 }
%h3 Merge Requests %h3 Merge Requests
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
.col-md-8 .col-md-8
%div %div
%p.light Merge requests created per group member %p.light Merge requests created per group member
%canvas#merge_requests{height: 250} %canvas#merge_requests{ height: 250 }
%h3 Issues %h3 Issues
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
.col-md-8 .col-md-8
%div %div
%p.light Issues closed per group member %p.light Issues closed per group member
%canvas#issues{height: 250} %canvas#issues{ height: 250 }
.gray-content-block .gray-content-block
.oneline .oneline
......
.panel.panel-default .panel.panel-default
.panel-heading .panel-heading
%h4.panel-title %h4.panel-title
Linked LDAP groups Linked LDAP groups (#{group.ldap_group_links.count})
== (#{group.ldap_group_links.count})
- if group.ldap_group_links.any? - if group.ldap_group_links.any?
%ul.well-list %ul.well-list
......
...@@ -12,5 +12,5 @@ ...@@ -12,5 +12,5 @@
%p %p
Approvers: #{render_items_list(@merge_request.approvers_left.map(&:name))} Approvers: #{render_items_list(@merge_request.approvers_left.map(&:name))}
-if @merge_request.description - if @merge_request.description
= markdown(@merge_request.description, pipeline: :email, author: @merge_request.author) = markdown(@merge_request.description, pipeline: :email, author: @merge_request.author)
...@@ -4,4 +4,4 @@ ...@@ -4,4 +4,4 @@
%p %p
Don't want to receive updates from GitLab administrators? Don't want to receive updates from GitLab administrators?
= link_to 'Unsubscribe', @unsubscribe_url = link_to 'Unsubscribe', @unsubscribe_url
\ No newline at end of file
...@@ -3,4 +3,4 @@ ...@@ -3,4 +3,4 @@
\----- \-----
Don't want to receive updates from GitLab administrators? Don't want to receive updates from GitLab administrators?
== Unsubscribe here: #{@unsubscribe_url} Unsubscribe here: #{@unsubscribe_url}
\ No newline at end of file
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
protected protected
- if @project.mirror_ever_updated_successfully? && @repository.diverged_from_upstream?(branch.name) - if @project.mirror_ever_updated_successfully? && @repository.diverged_from_upstream?(branch.name)
%span.label.label-danger.has-tooltip{data: { html: "true", title: branch_diverged_tooltip_message }} %span.label.label-danger.has-tooltip{ data: { html: "true", title: branch_diverged_tooltip_message } }
= icon('exclamation-triangle') = icon('exclamation-triangle')
diverged from upstream diverged from upstream
......
...@@ -2,21 +2,21 @@ ...@@ -2,21 +2,21 @@
- if !@project.has_remote_mirror? && @project.mirror? - if !@project.has_remote_mirror? && @project.mirror?
- size = nil unless defined?(size) && size - size = nil unless defined?(size) && size
- if @project.updating_mirror? - if @project.updating_mirror?
%span.btn.disabled.update-mirror-button.has-tooltip{title: "Updating from upstream..."} %span.btn.disabled.update-mirror-button.has-tooltip{ title: "Updating from upstream..." }
= icon('refresh') = icon('refresh')
- else - else
= link_to update_now_namespace_project_mirror_path(@project.namespace, @project), method: :post, class: "btn update-mirror-button has-tooltip", title: "Update from upstream" do = link_to update_now_namespace_project_mirror_path(@project.namespace, @project), method: :post, class: "btn update-mirror-button has-tooltip", title: "Update from upstream" do
= icon('refresh') = icon('refresh')
- elsif @project.has_remote_mirror? && !@project.mirror? - elsif @project.has_remote_mirror? && !@project.mirror?
- if @project.updating_remote_mirror? - if @project.updating_remote_mirror?
%span.btn.disabled.update-mirror-button.has-tooltip{title: "Updating remote repository..."} %span.btn.disabled.update-mirror-button.has-tooltip{ title: "Updating remote repository..." }
= icon('refresh') = icon('refresh')
- else - else
= link_to update_now_namespace_project_mirror_path(@project.namespace, @project, sync_remote: true), method: :post, class: "btn update-mirror-button has-tooltip", title: "Update remote repository" do = link_to update_now_namespace_project_mirror_path(@project.namespace, @project, sync_remote: true), method: :post, class: "btn update-mirror-button has-tooltip", title: "Update remote repository" do
= icon('refresh') = icon('refresh')
- elsif @project.has_remote_mirror? && @project.mirror? - elsif @project.has_remote_mirror? && @project.mirror?
.btn-group .btn-group
%a.btn.dropdown-toggle{href: '#', 'data-toggle' => 'dropdown'} %a.btn.dropdown-toggle{ href: '#', 'data-toggle' => 'dropdown' }
= icon('refresh') = icon('refresh')
%ul.dropdown-menu.dropdown-menu-right %ul.dropdown-menu.dropdown-menu-right
%li %li
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
= render "shared/mirror_status" = render "shared/mirror_status"
- if @ref.present? && @project.mirror_ever_updated_successfully? && @repository.diverged_from_upstream?(@ref) - if @ref.present? && @project.mirror_ever_updated_successfully? && @repository.diverged_from_upstream?(@ref)
%span.has-tooltip{data: { html: "true", title: branch_diverged_tooltip_message }} %span.has-tooltip{ data: { html: "true", title: branch_diverged_tooltip_message } }
= icon('exclamation-triangle') = icon('exclamation-triangle')
This branch has diverged from upstream. This branch has diverged from upstream.
.project-mirror-button .project-mirror-button
......
%div %div
%h4 %h4
= render_require_section(@merge_request) = render_require_section(@merge_request)
- if @merge_request.can_approve?(current_user)
- if @merge_request.can_approve?(current_user) .append-bottom-10
.append-bottom-10 = form_for [:approve, @project.namespace.becomes(Namespace), @project, @merge_request], method: :post do |f|
= form_for [:approve, @project.namespace.becomes(Namespace), @project, @merge_request], method: :post do |f| = f.submit "Approve Merge Request", class: "btn btn-primary approve-btn"
= f.submit "Approve Merge Request", class: "btn btn-primary approve-btn"
...@@ -70,12 +70,12 @@ ...@@ -70,12 +70,12 @@
%span.badge %span.badge
= @search_results.milestones_count = @search_results.milestones_count
- if current_application_settings.elasticsearch_search? - if current_application_settings.elasticsearch_search?
%li{class: ("active" if @scope == 'blobs')} %li{ class: ("active" if @scope == 'blobs') }
= link_to search_filter_path(scope: 'blobs') do = link_to search_filter_path(scope: 'blobs') do
Code Code
%span.badge %span.badge
= @search_results.blobs_count = @search_results.blobs_count
%li{class: ("active" if @scope == 'commits')} %li{ class: ("active" if @scope == 'commits') }
= link_to search_filter_path(scope: 'commits') do = link_to search_filter_path(scope: 'commits') do
Commits Commits
%span.badge %span.badge
......
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
- unsaved_approvers = !issuable.approvers_overwritten? - unsaved_approvers = !issuable.approvers_overwritten?
- item_classes = unsaved_approvers ? ['unsaved-approvers'] : [] - item_classes = unsaved_approvers ? ['unsaved-approvers'] : []
- issuable.overall_approvers.each do |approver| - issuable.overall_approvers.each do |approver|
%li{id: dom_id(approver.user), class: item_classes + ['approver']} %li{ id: dom_id(approver.user), class: item_classes + ['approver'] }
= link_to approver.user.name, approver.user = link_to approver.user.name, approver.user
.pull-right .pull-right
- if unsaved_approvers - if unsaved_approvers
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
= icon("sign-out") = icon("sign-out")
Remove Remove
- issuable.overall_approver_groups.each do |approver_group| - issuable.overall_approver_groups.each do |approver_group|
%li{id: dom_id(approver_group.group), class: item_classes + ['approver-group']} %li{ id: dom_id(approver_group.group), class: item_classes + ['approver-group'] }
Group: Group:
= link_to approver_group.group.name, approver_group.group = link_to approver_group.group.name, approver_group.group
.pull-right .pull-right
......
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
%ul %ul
- Issue.weight_filter_options.each do |weight| - Issue.weight_filter_options.each do |weight|
%li %li
%a{href: "#", data: { id: weight }, class: ("is-active" if params[:weight] == weight.to_s)} %a{ href: "#", data: { id: weight }, class: ("is-active" if params[:weight] == weight.to_s) }
= weight = weight
- if issuable_filter_present? - if issuable_filter_present?
......
...@@ -81,7 +81,7 @@ ...@@ -81,7 +81,7 @@
method: :delete, class: 'btn btn-danger btn-grouped' method: :delete, class: 'btn btn-danger btn-grouped'
= link_to 'Cancel', polymorphic_path([@project.namespace.becomes(Namespace), @project, issuable]), class: 'btn btn-grouped btn-cancel' = link_to 'Cancel', polymorphic_path([@project.namespace.becomes(Namespace), @project, issuable]), class: 'btn btn-grouped btn-cancel'
%li.unsaved-approvers.hide.approver.approver-template{id: "user_{user_id}"} %li.unsaved-approvers.hide.approver.approver-template{ id: "user_{user_id}" }
= link_to "{approver_name}", "#" = link_to "{approver_name}", "#"
.pull-right .pull-right
= link_to "#", data: { confirm: "Are you sure you want to remove approver {approver_name}"}, class: "btn-xs btn btn-remove", title: 'Remove approver' do = link_to "#", data: { confirm: "Are you sure you want to remove approver {approver_name}"}, class: "btn-xs btn btn-remove", title: 'Remove approver' do
......
...@@ -76,7 +76,7 @@ ...@@ -76,7 +76,7 @@
= dropdown_tag('Milestone', options: { title: 'Assign milestone', toggle_class: 'js-milestone-select js-extra-options', filter: true, dropdown_class: 'dropdown-menu-selectable', placeholder: 'Search milestones', data: { show_no: true, field_name: "#{issuable.to_ability_name}[milestone_id]", project_id: @project.id, issuable_id: issuable.id, milestones: namespace_project_milestones_path(@project.namespace, @project, :json), ability_name: issuable.to_ability_name, issue_update: issuable_json_path(issuable), use_id: true }}) = dropdown_tag('Milestone', options: { title: 'Assign milestone', toggle_class: 'js-milestone-select js-extra-options', filter: true, dropdown_class: 'dropdown-menu-selectable', placeholder: 'Search milestones', data: { show_no: true, field_name: "#{issuable.to_ability_name}[milestone_id]", project_id: @project.id, issuable_id: issuable.id, milestones: namespace_project_milestones_path(@project.namespace, @project, :json), ability_name: issuable.to_ability_name, issue_update: issuable_json_path(issuable), use_id: true }})
- if issuable.has_attribute?(:time_estimate) - if issuable.has_attribute?(:time_estimate)
#issuable-time-tracker.block #issuable-time-tracker.block
%issuable-time-tracker{ ':time_estimate' => 'issuable.time_estimate', ':time_spent' => 'issuable.total_time_spent', ':human_time_estimate' => 'issuable.human_time_estimate', ':human_time_spent' => 'issuable.human_total_time_spent', 'stopwatch-svg' => custom_icon('icon_stopwatch'), 'docs-url' => help_page_path('workflow/time_tracking.md')} %issuable-time-tracker{ ':time_estimate' => 'issuable.time_estimate', ':time_spent' => 'issuable.total_time_spent', ':human_time_estimate' => 'issuable.human_time_estimate', ':human_time_spent' => 'issuable.human_total_time_spent', 'stopwatch-svg' => custom_icon('icon_stopwatch'), 'docs-url' => help_page_path('workflow/time_tracking.md') }
// Fallback while content is loading // Fallback while content is loading
.title.hide-collapsed .title.hide-collapsed
Time tracking Time tracking
......
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