Added haml-lint and fix warnings (#2773)
* add haml_lint to Gemfile * add .haml-lint.yml * fix warnings of haml_lint
This commit is contained in:
		| @@ -7,7 +7,7 @@ | ||||
|  | ||||
|     %p | ||||
|       = t('doorkeeper.authorizations.new.able_to') | ||||
|       = @pre_auth.scopes.map { |scope| t(scope, scope: [:doorkeeper, :scopes]) }.map { |s| "<strong>#{s}</strong>"}.to_sentence.html_safe | ||||
|       != @pre_auth.scopes.map { |scope| t(scope, scope: [:doorkeeper, :scopes]) }.map { |s| "<strong>#{s}</strong>" }.to_sentence | ||||
|  | ||||
|   = form_tag oauth_authorization_path, method: :post, class: 'simple_form' do | ||||
|     = hidden_field_tag :client_id, @pre_auth.client.uid | ||||
|   | ||||
| @@ -16,7 +16,7 @@ | ||||
|             = application.name | ||||
|           - else | ||||
|             = link_to application.name, application.website, target: '_blank', rel: 'noopener' | ||||
|         %th= application.scopes.map { |scope| t(scope, scope: [:doorkeeper, :scopes]) }.join('<br />').html_safe | ||||
|         %th!= application.scopes.map { |scope| t(scope, scope: [:doorkeeper, :scopes]) }.join('<br />') | ||||
|         %td= l application.created_at | ||||
|         %td | ||||
|           - unless application.superapp? | ||||
|   | ||||
		Reference in New Issue
	
	Block a user