From f6ee98a2f0123b7af1c982aa4f8f22885f391fdb Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Mon, 5 Aug 2019 18:48:45 -0400 Subject: [PATCH] Add PRO conditional to dashboard, fixes #78 --- app/views/admin/accounts/show.html.haml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/views/admin/accounts/show.html.haml b/app/views/admin/accounts/show.html.haml index 4e709352..41228e39 100644 --- a/app/views/admin/accounts/show.html.haml +++ b/app/views/admin/accounts/show.html.haml @@ -133,7 +133,10 @@ %td - if @account.is_pro? =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 - if @account.local? = table_link_to '', t('admin.accounts.edit_pro'), edit_pro_admin_account_path(@account.id), class: 'button' if can?(:verify, @account)