summaryrefslogtreecommitdiff
path: root/views/staff/users/show.ejs
diff options
context:
space:
mode:
Diffstat (limited to 'views/staff/users/show.ejs')
-rw-r--r--views/staff/users/show.ejs31
1 files changed, 28 insertions, 3 deletions
diff --git a/views/staff/users/show.ejs b/views/staff/users/show.ejs
index d6a21d5..e441109 100644
--- a/views/staff/users/show.ejs
+++ b/views/staff/users/show.ejs
@@ -17,13 +17,38 @@
[[- profile.displayName ]]
</td>
<td class="editLinks">
- <a href="/profile/[[- profile.username ]]">[view profile]</a>
- <a href="/staff/users/[[- profile.username ]]/media">[view media]</a>
- <a href="https://vvalls.recurly.com/accounts/[[- profile._id ]]">[view on recurly]</a>
+ <a href="/profile/[[- profile.username ]]">[profile]</a>
+ <a href="/staff/users/[[- profile.username ]]/media">[media]</a>
+ [[ if (profile.subscription) { ]]
+ <a href="https://vvalls.recurly.com/accounts/[[- profile._id ]]">[recurly]</a>
+ [[ } ]]
</td>
</tr>
</table>
+
+ [[ if (profile.subscription) { ]]
+ <h2>Subscription</h2>
+ <table>
+ <tr>
+ <th>
+ plan
+ </th>
+ <td>
+ [[- profile.plan_type ]]
+ </td>
+ </tr>
+ <tr>
+ <th>
+ last charged
+ </th>
+ <td>
+ [[- profile.last_charged ]]
+ </td>
+ </tr>
+ </table>
+ [[ } ]]
+
<h2>Profile</h2>
<table>