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:
parent
b18504adfe
commit
48594b18e6
39 changed files with 207 additions and 90 deletions
|
@ -4,5 +4,5 @@
|
|||
.name
|
||||
= link_to TagManager.instance.url_for(account) do
|
||||
%span.display_name.emojify= display_name(account)
|
||||
%span.username= "@#{account.acct}"
|
||||
%span.username @#{account.acct}
|
||||
%p.note.emojify= truncate(strip_tags(account.note), length: 150)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.card.h-card.p-author{ style: "background-image: url(#{account.header.url( :original)})" }
|
||||
.card.h-card.p-author{ style: "background-image: url(#{account.header.url(:original)})" }
|
||||
- if user_signed_in? && current_account.id != account.id && !current_account.requested?(account)
|
||||
.controls
|
||||
- if current_account.following?(account)
|
||||
|
@ -13,7 +13,7 @@
|
|||
%h1.name
|
||||
%span.p-name.emojify= display_name(account)
|
||||
%small
|
||||
%span= "@#{account.username}"
|
||||
%span @#{account.username}
|
||||
= fa_icon('lock') if account.locked?
|
||||
.details
|
||||
.bio
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue