Skip to content

Commit 5309eb3

Browse files
committed
Lint: Use single quote for string attributes in views
1 parent 4344a28 commit 5309eb3

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

app/views/collections/_collections.html.slim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@
5757
.btn-group.float-end aria-label='...' role='group'
5858
- if policy(collection).show?
5959
= link_to(collection_path(collection), class: 'btn btn-light', data: {bs_toggle: 'tooltip', bs_placement: 'top', bs_title: t('common.button.view')}) do
60-
i.fas.fa-eye aria-hidden="true"
60+
i.fas.fa-eye aria-hidden='true'
6161
- if policy(collection).edit?
6262
= link_to(edit_collection_path(collection), class: 'btn btn-light', data: {bs_toggle: 'tooltip', bs_placement: 'top', bs_title: t('common.button.edit')}) do
63-
i.fas.fa-edit aria-hidden="true"
63+
i.fas.fa-edit aria-hidden='true'
6464
= render('shared/pagination', collection: @collections)

app/views/groups/_groups.html.slim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@
3030
.btn-group.float-end aria-label='...' role='group'
3131
- if policy(group).show?
3232
= link_to(group, class: 'btn btn-light', data: {bs_toggle: 'tooltip', bs_placement: 'top', bs_title: t('common.button.show')}) do
33-
i.fas.fa-eye aria-hidden="true"
33+
i.fas.fa-eye aria-hidden='true'
3434
- if policy(group).edit?
3535
= link_to(edit_group_path(group), class: 'btn btn-light', data: {bs_toggle: 'tooltip', bs_placement: 'top', bs_title: t('common.button.edit')}) do
36-
i.fas.fa-edit aria-hidden="true"
36+
i.fas.fa-edit aria-hidden='true'
3737
= button_to(group, class: 'btn btn-light', method: :delete, data: {bs_toggle: 'tooltip', bs_placement: 'top', bs_title: t('common.button.delete')}) do
38-
i.fas.fa-trash-alt aria-hidden="true"
38+
i.fas.fa-trash-alt aria-hidden='true'
3939

4040
- elsif group.applicants.include?(current_user)
4141
= t('.wait_to_get_accepted')

app/views/layouts/mailer.html.slim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
doctype html
22
html
33
head
4-
meta[http-equiv="Content-Type" content="text/html; charset=utf-8"]
4+
meta[http-equiv='Content-Type' content='text/html; charset=utf-8']
55
style
66
/* Email styles need to be inline */
77

app/views/tasks/_rating_modal.html.slim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ span.rating-category-container
1212
= render('task_star_rating', rating: @user_rating.overall_rating, is_input: true, category: :overall_rating)
1313

1414
- content_for :modal_footer, flush: true do
15-
button.btn.btn-light.m-0#ratingModalSaveButton data-bs-dismiss="modal" disabled=@user_rating.invalid?
15+
button.btn.btn-light.m-0#ratingModalSaveButton data-bs-dismiss='modal' disabled=@user_rating.invalid?
1616
= t('common.button.save')

app/views/tasks/_tasks.html.slim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,13 @@
6363
.exercise-buttons.btn-group.float-end aria-label='...' role='group'
6464
- if policy(task).show?
6565
= link_to(task.url_for(:show), class: 'btn btn-light', data: {bs_toggle: 'tooltip', bs_placement: 'top', bs_title: t('common.button.view')}) do
66-
i.fas.fa-eye aria-hidden="true"
66+
i.fas.fa-eye aria-hidden='true'
6767
- if policy(task).edit?
6868
= link_to(task.url_for(:edit), class: 'btn btn-light', data: {bs_toggle: 'tooltip', bs_placement: 'top', bs_title: t('common.button.edit')}) do
69-
i.fas.fa-edit aria-hidden="true"
69+
i.fas.fa-edit aria-hidden='true'
7070
- if policy(task).destroy?
7171
= button_to(task.url_for(:destroy), class: 'btn btn-light', method: :delete, data: {bs_toggle: 'tooltip', bs_placement: 'top', bs_title: t('common.button.delete'), confirm: t('common.sure')}) do
72-
i.fas.fa-trash-alt aria-hidden="true"
72+
i.fas.fa-trash-alt aria-hidden='true'
7373

7474
.card-footer.d-flex.align-items-center.pe-2
7575
.row.w-100

app/views/tasks/show.html.slim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
= render('rating_subcategories', task: @task)
1818
span.mx-2
1919
- if current_user && policy(Rating).new_for_task?(@task)
20-
.btn.btn-light.btn-sm#ratingModalOpenButton data-bs-toggle="modal" data-bs-target="#ratingModal"
20+
.btn.btn-light.btn-sm#ratingModalOpenButton data-bs-toggle='modal' data-bs-target='#ratingModal'
2121
= t('.button.rate')
2222
= render('shared/modal',
2323
title: Rating.model_name.human,

0 commit comments

Comments
 (0)