Commit 7b1944f9 authored by Kushal Pandya's avatar Kushal Pandya

HAMLLint: Fix `ClassAttributeWithStaticValue` offences

parent ef3744d0
- if form_based_providers.any? - if form_based_providers.any?
- if crowd_enabled? - if crowd_enabled?
.login-box.tab-pane.active{id: "crowd", role: 'tabpanel', class: 'tab-pane'} .login-box.tab-pane.active{id: "crowd", role: 'tabpanel'}
.login-body .login-body
= render 'devise/sessions/new_crowd' = render 'devise/sessions/new_crowd'
- @ldap_servers.each_with_index do |server, i| - @ldap_servers.each_with_index do |server, i|
......
#register-pane.login-box{ role: 'tabpanel', class: 'tab-pane' } #register-pane.tab-pane.login-box{ role: 'tabpanel' }
.login-body .login-body
= form_for(resource, as: "new_#{resource_name}", url: registration_path(resource_name), html: { class: "new_new_user gl-show-field-errors", "aria-live" => "assertive" }) do |f| = form_for(resource, as: "new_#{resource_name}", url: registration_path(resource_name), html: { class: "new_new_user gl-show-field-errors", "aria-live" => "assertive" }) do |f|
.devise-errors .devise-errors
......
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
.col-lg-4 .col-lg-4
%table.shortcut-mappings %table.shortcut-mappings
%tbody{ class: 'hidden-shortcut project', style: 'display:none' } %tbody.hidden-shortcut.project{ style: 'display:none' }
%tr %tr
%th %th
%th Global Dashboard %th Global Dashboard
...@@ -190,7 +190,7 @@ ...@@ -190,7 +190,7 @@
%td New issue %td New issue
.col-lg-4 .col-lg-4
%table.shortcut-mappings %table.shortcut-mappings
%tbody{ class: 'hidden-shortcut network', style: 'display:none' } %tbody.hidden-shortcut.network{ style: 'display:none' }
%tr %tr
%th %th
%th Network Graph %th Network Graph
...@@ -240,7 +240,7 @@ ...@@ -240,7 +240,7 @@
.key .key
shift j shift j
%td Scroll to bottom %td Scroll to bottom
%tbody{ class: 'hidden-shortcut issues', style: 'display:none' } %tbody.hidden-shortcut.issues{ style: 'display:none' }
%tr %tr
%th %th
%th Issues %th Issues
...@@ -264,7 +264,7 @@ ...@@ -264,7 +264,7 @@
%td.shortcut %td.shortcut
.key l .key l
%td Change Label %td Change Label
%tbody{ class: 'hidden-shortcut merge_requests', style: 'display:none' } %tbody.hidden-shortcut.merge_requests{ style: 'display:none' }
%tr %tr
%th %th
%th Merge Requests %th Merge Requests
......
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
-# per_page: number of items to fetch per page -# per_page: number of items to fetch per page
-# remote: data-remote -# remote: data-remote
- if current_page.last? - if current_page.last?
%li{ class: "next disabled" } %li.next.disabled
%span= raw(t 'views.pagination.next') %span= raw(t 'views.pagination.next')
- else - else
%li{ class: "next" } %li.next
= link_to raw(t 'views.pagination.next'), url, rel: 'next', remote: remote = link_to raw(t 'views.pagination.next'), url, rel: 'next', remote: remote
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
-# per_page: number of items to fetch per page -# per_page: number of items to fetch per page
-# remote: data-remote -# remote: data-remote
- if current_page.first? - if current_page.first?
%li{ class: "prev disabled" } %li.prev.disabled
%span= raw(t 'views.pagination.previous') %span= raw(t 'views.pagination.previous')
- else - else
%li{ class: "prev" } %li.prev
= link_to raw(t 'views.pagination.previous'), url, rel: 'prev', remote: remote = link_to raw(t 'views.pagination.previous'), url, rel: 'prev', remote: remote
!!! 5 !!! 5
%html{ lang: "en", class: "devise-layout-html"} %html.devise-layout-html
= render "layouts/head" = render "layouts/head"
%body.ui_charcoal.login-page.application.navless{ data: { page: body_data_page }} %body.ui_charcoal.login-page.application.navless{ data: { page: body_data_page }}
.page-wrap .page-wrap
......
%header.navbar.navbar-fixed-top.navbar-gitlab{ class: nav_header_class } %header.navbar.navbar-fixed-top.navbar-gitlab{ class: nav_header_class }
%a{ href: "#content-body", tabindex: "1", class: "sr-only gl-accessibility" } Skip to content %a.sr-only.gl-accessibility{ href: "#content-body", tabindex: "1" } Skip to content
%div{ class: "container-fluid" } %div.container-fluid
.header-content .header-content
%button.side-nav-toggle{ type: 'button', "aria-label" => "Toggle global navigation" } %button.side-nav-toggle{ type: 'button', "aria-label" => "Toggle global navigation" }
%span.sr-only Toggle navigation %span.sr-only Toggle navigation
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
Attach a file by drag & drop or Attach a file by drag & drop or
= link_to 'click to upload', '#', class: "markdown-selector" = link_to 'click to upload', '#', class: "markdown-selector"
%br %br
.dropzone-alerts{class: "alert alert-danger data", style: "display:none"} .dropzone-alerts.alert.alert-danger.data{style: "display:none"}
= render 'shared/new_commit_form', placeholder: placeholder = render 'shared/new_commit_form', placeholder: placeholder
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
- if @error - if @error
.alert.alert-danger .alert.alert-danger
%button{ type: "button", class: "close", "data-dismiss" => "alert"} × %button.close{ type: "button", "data-dismiss" => "alert"} ×
= @error = @error
%h3.page-title %h3.page-title
New Branch New Branch
......
...@@ -56,10 +56,10 @@ ...@@ -56,10 +56,10 @@
- else - else
#js-build-scroll.scroll-controls #js-build-scroll.scroll-controls
.scroll-step .scroll-step
%a{ href: '#up-build-trace', id: 'scroll-top', class: 'scroll-link scroll-top', title: 'Scroll to top' } %a.scroll-link.scroll-top{ href: '#up-build-trace', id: 'scroll-top', title: 'Scroll to top' }
= custom_icon('scroll_up') = custom_icon('scroll_up')
= custom_icon('scroll_up_hover_active') = custom_icon('scroll_up_hover_active')
%a{ href: '#down-build-trace', id: 'scroll-bottom', class: 'scroll-link scroll-bottom', title: 'Scroll to bottom' } %a.scroll-link.scroll-bottom{ href: '#down-build-trace', id: 'scroll-bottom', title: 'Scroll to bottom' }
= custom_icon('scroll_down') = custom_icon('scroll_down')
= custom_icon('scroll_down_hover_active') = custom_icon('scroll_down_hover_active')
- if @build.active? - if @build.active?
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
.col-sm-offset-2.col-sm-10 .col-sm-offset-2.col-sm-10
.row .row
.col-xs-6 .col-xs-6
%button{ type: "button", class: "btn btn-success js-submit-button", "@click" => "commit()", ":disabled" => "!readyToCommit" } %button.btn.btn-success.js-submit-button{ type: "button", "@click" => "commit()", ":disabled" => "!readyToCommit" }
%span {{commitButtonText}} %span {{commitButtonText}}
.col-xs-6.text-right .col-xs-6.text-right
= link_to "Cancel", namespace_project_merge_request_path(@merge_request.project.namespace, @merge_request.project, @merge_request), class: "btn btn-cancel" = link_to "Cancel", namespace_project_merge_request_path(@merge_request.project.namespace, @merge_request.project, @merge_request), class: "btn btn-cancel"
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
- if git_import_enabled? - if git_import_enabled?
= link_to "#", class: 'btn js-toggle-button import_git' do = link_to "#", class: 'btn js-toggle-button import_git' do
= icon('git', text: 'Repo by URL') = icon('git', text: 'Repo by URL')
%div{ class: 'import_gitlab_project' } %div.import_gitlab_project
- if gitlab_project_import_enabled? - if gitlab_project_import_enabled?
= link_to new_import_gitlab_project_path, class: 'btn btn_import_gitlab_project project-submit' do = link_to new_import_gitlab_project_path, class: 'btn btn_import_gitlab_project project-submit' do
= icon('gitlab', text: 'GitLab export') = icon('gitlab', text: 'GitLab export')
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
- unless note.system - unless note.system
commented commented
- if note.system - if note.system
%span{class: 'system-note-message'} %span.system-note-message
= note.redacted_note_html = note.redacted_note_html
%a{ href: "##{dom_id(note)}" } %a{ href: "##{dom_id(note)}" }
= time_ago_with_tooltip(note.created_at, placement: 'bottom', html_class: 'note-created-ago') = time_ago_with_tooltip(note.created_at, placement: 'bottom', html_class: 'note-created-ago')
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
- if @error - if @error
.alert.alert-danger .alert.alert-danger
%button{ type: "button", class: "close", "data-dismiss" => "alert"} × %button.close{ type: "button", "data-dismiss" => "alert"} ×
= @error = @error
%h3.page-title %h3.page-title
......
%tr{ class: "tree-item" } %tr.tree-item
%td.tree-item-file-name %td.tree-item-file-name
%i.fa.fa-archive.fa-fw %i.fa.fa-archive.fa-fw
= submodule_link(submodule_item, @ref) = submodule_link(submodule_item, @ref)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
- can_admin_member = can?(current_user, :admin_project_member, @project) - can_admin_member = can?(current_user, :admin_project_member, @project)
- dom_id = "group_member_#{group_link.id}" - dom_id = "group_member_#{group_link.id}"
%li.member.group_member{ id: dom_id } %li.member.group_member{ id: dom_id }
%span{ class: "list-item-name" } %span.list-item-name
= image_tag group_icon(group), class: "avatar s40", alt: '' = image_tag group_icon(group), class: "avatar s40", alt: ''
%strong %strong
= link_to group.name, group_path(group) = link_to group.name, group_path(group)
......
...@@ -14,15 +14,15 @@ ...@@ -14,15 +14,15 @@
- if issuable.is_a?(Issue) - if issuable.is_a?(Issue)
= confidential_icon(issuable) = confidential_icon(issuable)
= link_to_gfm issuable.title, [project.namespace.becomes(Namespace), project, issuable], title: issuable.title = link_to_gfm issuable.title, [project.namespace.becomes(Namespace), project, issuable], title: issuable.title
%div{class: 'issuable-detail'} %div.issuable-detail
= link_to [project.namespace.becomes(Namespace), project, issuable] do = link_to [project.namespace.becomes(Namespace), project, issuable] do
%span{ class: 'issuable-number' }>= issuable.to_reference %span.issuable-number >= issuable.to_reference
- issuable.labels.each do |label| - issuable.labels.each do |label|
= link_to polymorphic_path(base_url_args, { milestone_title: @milestone.title, label_name: label.title, state: 'all' }) do = link_to polymorphic_path(base_url_args, { milestone_title: @milestone.title, label_name: label.title, state: 'all' }) do
- render_colored_label(label) - render_colored_label(label)
%span{ class: "assignee-icon" } %span.assignee-icon
- if assignee - if assignee
= link_to polymorphic_path(base_url_args, { milestone_title: @milestone.title, assignee_id: issuable.assignee_id, state: 'all' }), = link_to polymorphic_path(base_url_args, { milestone_title: @milestone.title, assignee_id: issuable.assignee_id, state: 'all' }),
class: 'has-tooltip', title: "Assigned to #{assignee.name}", data: { container: 'body' } do class: 'has-tooltip', title: "Assigned to #{assignee.name}", data: { container: 'body' } do
......
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