HAMLLint: Fix `ClassAttributeWithStaticValue` offences
This commit is contained in:
parent
ef3744d0cd
commit
7b1944f96c
|
@ -1,6 +1,6 @@
|
|||
- if form_based_providers.any?
|
||||
- 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
|
||||
= render 'devise/sessions/new_crowd'
|
||||
- @ldap_servers.each_with_index do |server, i|
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#register-pane.login-box{ role: 'tabpanel', class: 'tab-pane' }
|
||||
#register-pane.tab-pane.login-box{ role: 'tabpanel' }
|
||||
.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|
|
||||
.devise-errors
|
||||
|
|
|
@ -82,7 +82,7 @@
|
|||
|
||||
.col-lg-4
|
||||
%table.shortcut-mappings
|
||||
%tbody{ class: 'hidden-shortcut project', style: 'display:none' }
|
||||
%tbody.hidden-shortcut.project{ style: 'display:none' }
|
||||
%tr
|
||||
%th
|
||||
%th Global Dashboard
|
||||
|
@ -190,7 +190,7 @@
|
|||
%td New issue
|
||||
.col-lg-4
|
||||
%table.shortcut-mappings
|
||||
%tbody{ class: 'hidden-shortcut network', style: 'display:none' }
|
||||
%tbody.hidden-shortcut.network{ style: 'display:none' }
|
||||
%tr
|
||||
%th
|
||||
%th Network Graph
|
||||
|
@ -240,7 +240,7 @@
|
|||
.key
|
||||
shift j
|
||||
%td Scroll to bottom
|
||||
%tbody{ class: 'hidden-shortcut issues', style: 'display:none' }
|
||||
%tbody.hidden-shortcut.issues{ style: 'display:none' }
|
||||
%tr
|
||||
%th
|
||||
%th Issues
|
||||
|
@ -264,7 +264,7 @@
|
|||
%td.shortcut
|
||||
.key l
|
||||
%td Change Label
|
||||
%tbody{ class: 'hidden-shortcut merge_requests', style: 'display:none' }
|
||||
%tbody.hidden-shortcut.merge_requests{ style: 'display:none' }
|
||||
%tr
|
||||
%th
|
||||
%th Merge Requests
|
||||
|
|
|
@ -6,8 +6,8 @@
|
|||
-# per_page: number of items to fetch per page
|
||||
-# remote: data-remote
|
||||
- if current_page.last?
|
||||
%li{ class: "next disabled" }
|
||||
%li.next.disabled
|
||||
%span= raw(t 'views.pagination.next')
|
||||
- else
|
||||
%li{ class: "next" }
|
||||
%li.next
|
||||
= link_to raw(t 'views.pagination.next'), url, rel: 'next', remote: remote
|
||||
|
|
|
@ -6,8 +6,8 @@
|
|||
-# per_page: number of items to fetch per page
|
||||
-# remote: data-remote
|
||||
- if current_page.first?
|
||||
%li{ class: "prev disabled" }
|
||||
%li.prev.disabled
|
||||
%span= raw(t 'views.pagination.previous')
|
||||
- else
|
||||
%li{ class: "prev" }
|
||||
%li.prev
|
||||
= link_to raw(t 'views.pagination.previous'), url, rel: 'prev', remote: remote
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
!!! 5
|
||||
%html{ lang: "en", class: "devise-layout-html"}
|
||||
%html.devise-layout-html
|
||||
= render "layouts/head"
|
||||
%body.ui_charcoal.login-page.application.navless{ data: { page: body_data_page }}
|
||||
.page-wrap
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
%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
|
||||
%div{ class: "container-fluid" }
|
||||
%a.sr-only.gl-accessibility{ href: "#content-body", tabindex: "1" } Skip to content
|
||||
%div.container-fluid
|
||||
.header-content
|
||||
%button.side-nav-toggle{ type: 'button', "aria-label" => "Toggle global navigation" }
|
||||
%span.sr-only Toggle navigation
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
Attach a file by drag & drop or
|
||||
= link_to 'click to upload', '#', class: "markdown-selector"
|
||||
%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
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
- if @error
|
||||
.alert.alert-danger
|
||||
%button{ type: "button", class: "close", "data-dismiss" => "alert"} ×
|
||||
%button.close{ type: "button", "data-dismiss" => "alert"} ×
|
||||
= @error
|
||||
%h3.page-title
|
||||
New Branch
|
||||
|
|
|
@ -56,10 +56,10 @@
|
|||
- else
|
||||
#js-build-scroll.scroll-controls
|
||||
.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_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_hover_active')
|
||||
- if @build.active?
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
.col-sm-offset-2.col-sm-10
|
||||
.row
|
||||
.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}}
|
||||
.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"
|
||||
|
|
|
@ -77,7 +77,7 @@
|
|||
- if git_import_enabled?
|
||||
= link_to "#", class: 'btn js-toggle-button import_git' do
|
||||
= icon('git', text: 'Repo by URL')
|
||||
%div{ class: 'import_gitlab_project' }
|
||||
%div.import_gitlab_project
|
||||
- if gitlab_project_import_enabled?
|
||||
= link_to new_import_gitlab_project_path, class: 'btn btn_import_gitlab_project project-submit' do
|
||||
= icon('gitlab', text: 'GitLab export')
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
- unless note.system
|
||||
commented
|
||||
- if note.system
|
||||
%span{class: 'system-note-message'}
|
||||
%span.system-note-message
|
||||
= note.redacted_note_html
|
||||
%a{ href: "##{dom_id(note)}" }
|
||||
= time_ago_with_tooltip(note.created_at, placement: 'bottom', html_class: 'note-created-ago')
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
- if @error
|
||||
.alert.alert-danger
|
||||
%button{ type: "button", class: "close", "data-dismiss" => "alert"} ×
|
||||
%button.close{ type: "button", "data-dismiss" => "alert"} ×
|
||||
= @error
|
||||
|
||||
%h3.page-title
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
%tr{ class: "tree-item" }
|
||||
%tr.tree-item
|
||||
%td.tree-item-file-name
|
||||
%i.fa.fa-archive.fa-fw
|
||||
= submodule_link(submodule_item, @ref)
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
- can_admin_member = can?(current_user, :admin_project_member, @project)
|
||||
- dom_id = "group_member_#{group_link.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: ''
|
||||
%strong
|
||||
= link_to group.name, group_path(group)
|
||||
|
|
|
@ -14,15 +14,15 @@
|
|||
- if issuable.is_a?(Issue)
|
||||
= confidential_icon(issuable)
|
||||
= 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
|
||||
%span{ class: 'issuable-number' }>= issuable.to_reference
|
||||
%span.issuable-number >= issuable.to_reference
|
||||
|
||||
- issuable.labels.each do |label|
|
||||
= link_to polymorphic_path(base_url_args, { milestone_title: @milestone.title, label_name: label.title, state: 'all' }) do
|
||||
- render_colored_label(label)
|
||||
|
||||
%span{ class: "assignee-icon" }
|
||||
%span.assignee-icon
|
||||
- if assignee
|
||||
= 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
|
||||
|
|
Loading…
Reference in New Issue