Sha256: 0a56d31aa12e681e364ea1d7290345ae24cf6785e860156c3da02fe425f50906

Contents?: true

Size: 1.61 KB

Versions: 6

Compression:

Stored size: 1.61 KB

Contents

<h2>Account Detail</h2>

<table>
  <tr>
    <th>ID</th>
    <th>Account Name</th>
    <th>Plan</th>
    <th>Activated?</th>
    <th>Customer Token</th>
    <th>Subscription Token</th>
    <th>Creation Date</th>
  </tr>
  <%= render :partial => 'admin/accounts/account', :object => @account %>
</table>

<%if @account.trial? -%>
  <h3>This is a trial account</h3>
  <p>
  <% if @account.expired? -%>
    It <em>expired</em> on <%= @account.trial_expires_at.to_s(:short_date)%>
    <%= button_to "Extend the trial to #{Saucy::Configuration.trial_length} days from now", admin_account_trial_extensions_path(@account) %>
  <% else -%>
    It's set to expire on <%= @account.trial_expires_at.to_s(:short_date) %>
    <%= button_to "Extend the trial by #{Saucy::Configuration.trial_length} days", admin_account_trial_extensions_path(@account) %>
  <% end -%>
  </p>
<% end -%>

<h3>Projects</h3>
<% unless @account.projects.empty? -%>
  <table>
    <tr>
      <th>ID</th>
      <th>Project Name</th>
      <th>Creation Date</th>
    </tr>
    <% @account.projects.each do |project| -%>
      <tr>
        <td><%= project.id %></td>
        <td><%= project.name %></td>
        <td><%= project.created_at %></td>
      </tr>
    <% end -%>
  </table>
<% else -%>
  <p><em>This account has no projects.</em></p>
<% end -%>

<h3>Users</h3>
<% unless @account.users.empty? -%>
  <table>
    <tr>
      <th>ID</th>
      <th>User Name</th>
      <th>Email</th>
      <th>Creation Date</th>
    </tr>
    <%= render :partial => 'admin/users/user', :collection => @account.users %>
  </table>
<% else -%>
  <p><em>This account has no users.</em></p>
<% end -%>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
saucy-0.16.1 app/views/admin/accounts/show.html.erb
saucy-0.16.0 app/views/admin/accounts/show.html.erb
saucy-0.15.2 app/views/admin/accounts/show.html.erb
saucy-0.15.1 app/views/admin/accounts/show.html.erb
saucy-0.15.0 app/views/admin/accounts/show.html.erb
saucy-0.14.5 app/views/admin/accounts/show.html.erb