Fix admin UI for accounts somewhat

This commit is contained in:
Eugen Rochko
2017-02-15 00:22:58 +01:00
parent 0a2427f79b
commit 5426f06ac2
5 changed files with 58 additions and 31 deletions

View File

@ -25,9 +25,7 @@
%tr
%th Username
%th Domain
%th Subscribed
%th Silenced
%th Suspended
%th= fa_icon 'paper-plane-o'
%th
%tbody
- @accounts.each do |account|
@ -43,16 +41,6 @@
%i.fa.fa-check
- else
%i.fa.fa-times
%td
- if account.silenced?
%i.fa.fa-check
- else
%i.fa.fa-times
%td
- if account.suspended?
%i.fa.fa-check
- else
%i.fa.fa-times
%td
= table_link_to 'circle', 'Web', web_path("accounts/#{account.id}")
= table_link_to 'globe', 'Public', TagManager.instance.url_for(account)