5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-22 19:36:21 +00:00

chore: haml-lint

This commit is contained in:
f 2024-05-02 16:25:20 -03:00
parent d6eaef97f4
commit 6ceef5465f
No known key found for this signature in database

View file

@ -4,7 +4,7 @@
%p.lead= t('.help') %p.lead= t('.help')
- if policy(Site).new? - if policy(Site).new?
= link_to t('sites.new.title'), new_site_path, = link_to t('sites.new.title'), new_site_path,
class: 'btn btn-secondary' class: 'btn btn-secondary'
%section.col %section.col
- if @sites.empty? - if @sites.empty?
@ -15,11 +15,14 @@
%tbody %tbody
- @sites.each do |site| - @sites.each do |site|
- next unless site.jekyll? - next unless site.jekyll?
%tr %tr
%td %td
%h2 %h2
- if policy(site).show? - if policy(site).show?
= link_to site.title, site_posts_path(site, locale: site.default_locale) = link_to site.title,
site_posts_path(site,
locale: site.default_locale)
- else - else
= site.title = site.title
%p.lead= site.description %p.lead= site.description
@ -27,27 +30,27 @@
= link_to t('.visit'), site.url, class: 'btn btn-secondary' = link_to t('.visit'), site.url, class: 'btn btn-secondary'
- if current_usuarie.rol_for_site(site).temporal? - if current_usuarie.rol_for_site(site).temporal?
= render 'components/btn_base', = render 'components/btn_base',
text: t('sites.invitations.accept'), text: t('sites.invitations.accept'),
path: site_usuaries_accept_invitation_path(site), path: site_usuaries_accept_invitation_path(site),
title: t('help.sites.invitations.accept'), title: t('help.sites.invitations.accept'),
class: 'btn-secondary' class: 'btn-secondary'
= render 'components/btn_base', = render 'components/btn_base',
text: t('sites.invitations.reject'), text: t('sites.invitations.reject'),
path: site_usuaries_reject_invitation_path(site), path: site_usuaries_reject_invitation_path(site),
title: t('help.sites.invitations.reject'), title: t('help.sites.invitations.reject'),
class: 'btn-secondary' class: 'btn-secondary'
- else - else
- if policy(site).show? - if policy(site).show?
= render 'layouts/btn_with_tooltip', = render 'layouts/btn_with_tooltip',
tooltip: t('help.sites.edit_posts'), tooltip: t('help.sites.edit_posts'),
type: 'success', type: 'success',
link: site_path(site), link: site_path(site),
text: t('sites.posts') text: t('sites.posts')
= render 'sites/build', site: site = render 'sites/build', site: site
= render 'sites/moderation_queue', site: site = render 'sites/moderation_queue', site: site
- if policy(SiteUsuarie.new(site, current_usuarie)).index? - if policy(SiteUsuarie.new(site, current_usuarie)).index?
= render 'layouts/btn_with_tooltip', = render 'layouts/btn_with_tooltip',
tooltip: t('usuaries.index.help.self'), tooltip: t('usuaries.index.help.self'),
text: t('usuaries.index.title'), text: t('usuaries.index.title'),
type: 'info', type: 'info',
link: site_usuaries_path(site) link: site_usuaries_path(site)