Add PRO conditional to dashboard, fixes #78

This commit is contained in:
Alex Gleason 2019-08-05 18:48:45 -04:00
parent 4d458d5778
commit f6ee98a2f0
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 4 additions and 1 deletions

View File

@ -133,7 +133,10 @@
%td %td
- if @account.is_pro? - if @account.is_pro?
=fa_icon 'check' =fa_icon 'check'
%time.formatted{ datetime: @account.pro_expires_at.iso8601, title: l(@account.pro_expires_at) }= l @account.pro_expires_at - if @account.pro_expires_at?
%time.formatted{ datetime: @account.pro_expires_at.iso8601, title: l(@account.pro_expires_at) }= l @account.pro_expires_at
- else
%td %td
- if @account.local? - if @account.local?
= table_link_to '', t('admin.accounts.edit_pro'), edit_pro_admin_account_path(@account.id), class: 'button' if can?(:verify, @account) = table_link_to '', t('admin.accounts.edit_pro'), edit_pro_admin_account_path(@account.id), class: 'button' if can?(:verify, @account)