HAMLLint: Fix `UnnecessaryInterpolation` and `UnnecessaryStringOutput` offences correctly

This commit is contained in:
Kushal Pandya 2017-01-24 10:25:16 -08:00
parent cd232bf7ee
commit 08c57ec94a
2 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@
- if @broadcast_message.message.present?
= render_broadcast_message(@broadcast_message)
- else
= ("Your message here")
Your message here
= form_for [:admin, @broadcast_message], html: { class: 'broadcast-message-form form-horizontal js-quick-submit js-requires-input'} do |f|
= form_errors(@broadcast_message)

View File

@ -1,6 +1,6 @@
%tr.deployment
%td
%strong= ("##{deployment.iid}")
%strong ##{deployment.iid}
%td
= render 'projects/deployments/commit', deployment: deployment
@ -8,7 +8,7 @@
%td.build-column
- if deployment.deployable
= link_to [@project.namespace.becomes(Namespace), @project, deployment.deployable], class: 'build-link' do
= ("#{deployment.deployable.name} (##{deployment.deployable.id})")
#{deployment.deployable.name} (##{deployment.deployable.id})
- if deployment.user
by
= user_avatar(user: deployment.user, size: 20)