Skip to content
Snippets Groups Projects
Commit fa21471a authored by Kushal Pandya's avatar Kushal Pandya
Browse files

HAMLLint: Fix `UnnecessaryInterpolation` offences

parent eeb68676
No related branches found
No related tags found
No related merge requests found
Showing
with 34 additions and 34 deletions
Loading
@@ -9,7 +9,7 @@
Loading
@@ -9,7 +9,7 @@
%span.wrap %span.wrap
.frame{ class: image_diff_class(diff) } .frame{ class: image_diff_class(diff) }
%img{ src: diff.deleted_file ? old_file_raw_path : file_raw_path, alt: diff.new_path } %img{ src: diff.deleted_file ? old_file_raw_path : file_raw_path, alt: diff.new_path }
%p.image-info= "#{number_to_human_size file.size}" %p.image-info= number_to_human_size(file.size)
- else - else
.image .image
.two-up.view .two-up.view
Loading
@@ -18,7 +18,7 @@
Loading
@@ -18,7 +18,7 @@
%a{ href: namespace_project_blob_path(@project.namespace, @project, tree_join(diff_file.old_ref, diff.old_path)) } %a{ href: namespace_project_blob_path(@project.namespace, @project, tree_join(diff_file.old_ref, diff.old_path)) }
%img{ src: old_file_raw_path, alt: diff.old_path } %img{ src: old_file_raw_path, alt: diff.old_path }
%p.image-info.hide %p.image-info.hide
%span.meta-filesize= "#{number_to_human_size old_file.size}" %span.meta-filesize= number_to_human_size(old_file.size)
| |
%b W: %b W:
%span.meta-width %span.meta-width
Loading
@@ -30,7 +30,7 @@
Loading
@@ -30,7 +30,7 @@
%a{ href: namespace_project_blob_path(@project.namespace, @project, tree_join(diff_file.new_ref, diff.new_path)) } %a{ href: namespace_project_blob_path(@project.namespace, @project, tree_join(diff_file.new_ref, diff.new_path)) }
%img{ src: file_raw_path, alt: diff.new_path } %img{ src: file_raw_path, alt: diff.new_path }
%p.image-info.hide %p.image-info.hide
%span.meta-filesize= "#{number_to_human_size file.size}" %span.meta-filesize= number_to_human_size(file.size)
| |
%b W: %b W:
%span.meta-width %span.meta-width
Loading
Loading
Loading
@@ -2,7 +2,7 @@
Loading
@@ -2,7 +2,7 @@
.commit-stat-summary .commit-stat-summary
Showing Showing
= link_to '#', class: 'js-toggle-button' do = link_to '#', class: 'js-toggle-button' do
%strong #{pluralize(diff_files.size, "changed file")} %strong= pluralize(diff_files.size, "changed file")
with with
%strong.cgreen #{diff_files.sum(&:added_lines)} additions %strong.cgreen #{diff_files.sum(&:added_lines)} additions
and and
Loading
Loading
Loading
@@ -77,7 +77,7 @@
Loading
@@ -77,7 +77,7 @@
- if generic_commit_status.finished_at - if generic_commit_status.finished_at
%p.finished-at %p.finished-at
= icon("calendar") = icon("calendar")
%span #{time_ago_with_tooltip(generic_commit_status.finished_at)} %span= time_ago_with_tooltip(generic_commit_status.finished_at)
   
%td.coverage %td.coverage
- if coverage && generic_commit_status.try(:coverage) - if coverage && generic_commit_status.try(:coverage)
Loading
Loading
Loading
@@ -11,7 +11,7 @@
Loading
@@ -11,7 +11,7 @@
   
%p.lead %p.lead
Commit statistics for Commit statistics for
%strong #{@ref} %strong= @ref
#{@commits_graph.start_date.strftime('%b %d')} - #{@commits_graph.end_date.strftime('%b %d')} #{@commits_graph.start_date.strftime('%b %d')} - #{@commits_graph.end_date.strftime('%b %d')}
   
.row .row
Loading
@@ -19,19 +19,19 @@
Loading
@@ -19,19 +19,19 @@
%ul %ul
%li %li
%p.lead %p.lead
%strong #{@commits_graph.commits.size} %strong= @commits_graph.commits.size
commits during commits during
%strong #{@commits_graph.duration} %strong= @commits_graph.duration
days days
%li %li
%p.lead %p.lead
Average Average
%strong #{@commits_graph.commit_per_day} %strong= @commits_graph.commit_per_day
commits per day commits per day
%li %li
%p.lead %p.lead
Contributed by Contributed by
%strong #{@commits_graph.authors} %strong= @commits_graph.authors
authors authors
.col-md-6 .col-md-6
%div %div
Loading
Loading
Loading
@@ -3,9 +3,9 @@
Loading
@@ -3,9 +3,9 @@
%p.slead %p.slead
- source_title, target_title = format_mr_branch_names(@merge_request) - source_title, target_title = format_mr_branch_names(@merge_request)
From From
%strong.label-branch #{source_title} %strong.label-branch= source_title
%span into %span into
%strong.label-branch #{target_title} %strong.label-branch= target_title
   
%span.pull-right %span.pull-right
= link_to 'Change branches', mr_change_branches_path(@merge_request) = link_to 'Change branches', mr_change_branches_path(@merge_request)
Loading
Loading
Loading
@@ -25,7 +25,7 @@
Loading
@@ -25,7 +25,7 @@
latest version latest version
- else - else
version #{version_index(merge_request_diff)} version #{version_index(merge_request_diff)}
.monospace #{short_sha(merge_request_diff.head_commit_sha)} .monospace= short_sha(merge_request_diff.head_commit_sha)
%small %small
#{number_with_delimiter(merge_request_diff.commits_count)} #{'commit'.pluralize(merge_request_diff.commits_count)}, #{number_with_delimiter(merge_request_diff.commits_count)} #{'commit'.pluralize(merge_request_diff.commits_count)},
= time_ago_with_tooltip(merge_request_diff.created_at) = time_ago_with_tooltip(merge_request_diff.created_at)
Loading
@@ -55,14 +55,14 @@
Loading
@@ -55,14 +55,14 @@
latest version latest version
- else - else
version #{version_index(merge_request_diff)} version #{version_index(merge_request_diff)}
.monospace #{short_sha(merge_request_diff.head_commit_sha)} .monospace= short_sha(merge_request_diff.head_commit_sha)
%small %small
= time_ago_with_tooltip(merge_request_diff.created_at) = time_ago_with_tooltip(merge_request_diff.created_at)
%li %li
= link_to merge_request_version_path(@project, @merge_request, @merge_request_diff), class: ('is-active' unless @start_sha) do = link_to merge_request_version_path(@project, @merge_request, @merge_request_diff), class: ('is-active' unless @start_sha) do
%strong %strong
#{@merge_request.target_branch} (base) #{@merge_request.target_branch} (base)
.monospace #{short_sha(@merge_request_diff.base_commit_sha)} .monospace= short_sha(@merge_request_diff.base_commit_sha)
   
- if different_base?(@start_version, @merge_request_diff) - if different_base?(@start_version, @merge_request_diff)
.content-block .content-block
Loading
@@ -72,7 +72,7 @@
Loading
@@ -72,7 +72,7 @@
= link_to namespace_project_compare_path(@project.namespace, @project, from: @start_version.base_commit_sha, to: @merge_request_diff.base_commit_sha) do = link_to namespace_project_compare_path(@project.namespace, @project, from: @start_version.base_commit_sha, to: @merge_request_diff.base_commit_sha) do
new commits new commits
from from
%code #{@merge_request.target_branch} %code= @merge_request.target_branch
   
- unless @merge_request_diff.latest? && !@start_sha - unless @merge_request_diff.latest? && !@start_sha
.comments-disabled-notif.content-block .comments-disabled-notif.content-block
Loading
Loading
Loading
@@ -69,7 +69,7 @@
Loading
@@ -69,7 +69,7 @@
- if note_editable - if note_editable
.original-note-content.hidden{ data: { post_url: namespace_project_note_path(@project.namespace, @project, note), target_id: note.noteable.id, target_type: note.noteable.class.name.underscore } } .original-note-content.hidden{ data: { post_url: namespace_project_note_path(@project.namespace, @project, note), target_id: note.noteable.id, target_type: note.noteable.class.name.underscore } }
#{note.note} #{note.note}
%textarea.hidden.js-task-list-field.original-task-list #{note.note} %textarea.hidden.js-task-list-field.original-task-list= note.note
.note-awards .note-awards
= render 'award_emoji/awards_block', awardable: note, inline: false = render 'award_emoji/awards_block', awardable: note, inline: false
- if note.system - if note.system
Loading
Loading
.panel.panel-default .panel.panel-default
.panel-heading .panel-heading
Group members with access to Group members with access to
%strong #{@group.name} %strong= @group.name
%span.badge= members.size %span.badge= members.size
- if can?(current_user, :admin_group_member, @group) - if can?(current_user, :admin_group_member, @group)
.controls .controls
Loading
Loading
.panel.panel-default.project-members-groups .panel.panel-default.project-members-groups
.panel-heading .panel-heading
Groups with access to Groups with access to
%strong #{@project.name} %strong= @project.name
%span.badge= group_links.size %span.badge= group_links.size
%ul.content-list %ul.content-list
= render partial: 'shared/members/group', collection: group_links, as: :group_link = render partial: 'shared/members/group', collection: group_links, as: :group_link
Loading
@@ -5,9 +5,9 @@
Loading
@@ -5,9 +5,9 @@
.panel.panel-default .panel.panel-default
.panel-heading .panel-heading
Shared with Shared with
%strong #{shared_group.name} %strong= shared_group.name
group, members with group, members with
%strong #{group_links.human_access} %strong= group_links.human_access
role (#{shared_group_users_count}) role (#{shared_group_users_count})
- if can?(current_user, :admin_group, shared_group) - if can?(current_user, :admin_group, shared_group)
.panel-head-actions .panel-head-actions
Loading
Loading
.panel.panel-default .panel.panel-default
.panel-heading .panel-heading
Members with access to Members with access to
%strong #{@project.name} %strong= @project.name
%span.badge= @project_members.total_count %span.badge= @project_members.total_count
= form_tag namespace_project_settings_members_path(@project.namespace, @project), method: :get, class: 'form-inline member-search-form' do = form_tag namespace_project_settings_members_path(@project.namespace, @project), method: :get, class: 'form-inline member-search-form' do
.form-group .form-group
Loading
Loading
Loading
@@ -7,7 +7,7 @@
Loading
@@ -7,7 +7,7 @@
.oneline .oneline
.title .title
Release notes for tag Release notes for tag
%strong #{@tag.name} %strong= @tag.name
   
   
= form_for(@release, method: :put, url: namespace_project_tag_release_path(@project.namespace, @project, @tag.name), html: { class: 'form-horizontal common-note-form release-form js-quick-submit' }) do |f| = form_for(@release, method: :put, url: namespace_project_tag_release_path(@project.namespace, @project, @tag.name), html: { class: 'form-horizontal common-note-form release-form js-quick-submit' }) do |f|
Loading
Loading
Loading
@@ -9,10 +9,10 @@
Loading
@@ -9,10 +9,10 @@
(checkout the #{link_to 'GitLab Runner section', 'https://about.gitlab.com/gitlab-ci/#gitlab-runner', target: '_blank'} for information on how to install it). (checkout the #{link_to 'GitLab Runner section', 'https://about.gitlab.com/gitlab-ci/#gitlab-runner', target: '_blank'} for information on how to install it).
%li %li
Specify the following URL during the Runner setup: Specify the following URL during the Runner setup:
%code #{ci_root_url(only_path: false)} %code= ci_root_url(only_path: false)
%li %li
Use the following registration token during setup: Use the following registration token during setup:
%code #{@project.runners_token} %code= @project.runners_token
%li %li
Start the Runner! Start the Runner!
   
Loading
Loading
Loading
@@ -3,4 +3,4 @@
Loading
@@ -3,4 +3,4 @@
%h4 %h4
= icon('search') = icon('search')
We couldn't find any results matching We couldn't find any results matching
%code #{@search_term} %code= @search_term
Loading
@@ -2,7 +2,7 @@
Loading
@@ -2,7 +2,7 @@
%h4 %h4
= link_to [merge_request.target_project.namespace.becomes(Namespace), merge_request.target_project, merge_request] do = link_to [merge_request.target_project.namespace.becomes(Namespace), merge_request.target_project, merge_request] do
%span.term.str-truncated= merge_request.title %span.term.str-truncated= merge_request.title
.pull-right #{merge_request.to_reference} .pull-right= merge_request.to_reference
- if merge_request.description.present? - if merge_request.description.present?
.description.term .description.term
= preserve do = preserve do
Loading
Loading
Loading
@@ -9,7 +9,7 @@
Loading
@@ -9,7 +9,7 @@
= link_to user_snippets_path(snippet.author) do = link_to user_snippets_path(snippet.author) do
= image_tag avatar_icon(snippet.author_email), class: "avatar avatar-inline s16", alt: '' = image_tag avatar_icon(snippet.author_email), class: "avatar avatar-inline s16", alt: ''
= snippet.author_name = snippet.author_name
%span.light #{time_ago_with_tooltip(snippet.created_at)} %span.light= time_ago_with_tooltip(snippet.created_at)
%h4.snippet-title %h4.snippet-title
- snippet_path = reliable_snippet_path(snippet) - snippet_path = reliable_snippet_path(snippet)
= link_to snippet_path do = link_to snippet_path do
Loading
Loading
Loading
@@ -20,4 +20,4 @@
Loading
@@ -20,4 +20,4 @@
= link_to user_snippets_path(snippet_title.author) do = link_to user_snippets_path(snippet_title.author) do
= image_tag avatar_icon(snippet_title.author_email), class: "avatar avatar-inline s16", alt: '' = image_tag avatar_icon(snippet_title.author_email), class: "avatar avatar-inline s16", alt: ''
= snippet_title.author_name = snippet_title.author_name
%span.light #{time_ago_with_tooltip(snippet_title.created_at)} %span.light= time_ago_with_tooltip(snippet_title.created_at)
Loading
@@ -14,7 +14,7 @@
Loading
@@ -14,7 +14,7 @@
To prevent accidental actions we ask you to confirm your intention. To prevent accidental actions we ask you to confirm your intention.
%br %br
Please type Please type
%code.js-confirm-danger-match #{phrase} %code.js-confirm-danger-match= phrase
to proceed or close this modal to cancel. to proceed or close this modal to cancel.
   
.form-group .form-group
Loading
Loading
Loading
@@ -6,14 +6,14 @@
Loading
@@ -6,14 +6,14 @@
= link_to milestones_filter_path(state: 'opened') do = link_to milestones_filter_path(state: 'opened') do
Open Open
- if @project - if @project
%span.badge #{counts[:opened]} %span.badge= counts[:opened]
%li{ class: milestone_class_for_state(params[:state], 'closed') }> %li{ class: milestone_class_for_state(params[:state], 'closed') }>
= link_to milestones_filter_path(state: 'closed') do = link_to milestones_filter_path(state: 'closed') do
Closed Closed
- if @project - if @project
%span.badge #{counts[:closed]} %span.badge= counts[:closed]
%li{ class: milestone_class_for_state(params[:state], 'all') }> %li{ class: milestone_class_for_state(params[:state], 'all') }>
= link_to milestones_filter_path(state: 'all') do = link_to milestones_filter_path(state: 'all') do
All All
- if @project - if @project
%span.badge #{counts[:all]} %span.badge= counts[:all]
Loading
@@ -32,7 +32,7 @@
Loading
@@ -32,7 +32,7 @@
   
- if group_member - if group_member
as as
%span #{group_member.human_access} %span= group_member.human_access
   
- if group.description.present? - if group.description.present?
.description .description
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment