Initial commit
This commit is contained in:
33
app/views/admin/accounts/_account.html.erb
Normal file
33
app/views/admin/accounts/_account.html.erb
Normal file
@@ -0,0 +1,33 @@
|
||||
<tr id="<%= dom_id(account) %>">
|
||||
<td>
|
||||
<%= account.name %>
|
||||
</td>
|
||||
<td>
|
||||
<%= account.plan_name %>
|
||||
</td>
|
||||
<td>
|
||||
<%= account.projects.size %>
|
||||
</td>
|
||||
<td>
|
||||
<%= number_with_delimiter convert_duration(account.current_month_video_duration_total, from: :seconds, to: :minutes).round %> minutes
|
||||
</td>
|
||||
<td>
|
||||
<%= number_with_delimiter convert_duration(account.video_duration_total, from: :seconds, to: :minutes).round %> minutes
|
||||
</td>
|
||||
<td>
|
||||
<%= number_to_human_size account.storage_total %>
|
||||
</td>
|
||||
<td>
|
||||
<%= time_ago_in_words(account.created_at) %> ago
|
||||
</td>
|
||||
<td>
|
||||
<div class="btn-group">
|
||||
<%= button_tag "Manage", class: "btn btn-light btn-sm dropdown-toggle border", data: { toggle: "dropdown", boundary: "window" }, aria: { haspopup: true, expanded: false } %>
|
||||
<div class="dropdown-menu dropdown-menu-right">
|
||||
<%= link_to fa_icon("arrow-right", text: "Overview"), admin_account_path(account), class: "dropdown-item" %>
|
||||
<%= link_to fa_icon("pencil", text: "Edit"), edit_admin_account_path(account), class: "dropdown-item" %>
|
||||
<%= link_to fa_icon("arrow-right", text: "Account Managers"), account_auths_path({ account_id: account.id}), class: "dropdown-item" %>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
Reference in New Issue
Block a user