Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 9210adbfb4
Fetching contributors…

Cannot retrieve contributors at this time

44 lines (41 sloc) 1.224 kb
<div class="page-header">
<h3>
<% if @group %>
Web Accounts grouped with &ldquo;<%= @group.name %>&rdquo;
<% else %>
Web Accounts
<% end %>
<%= link_to 'New Account', new_accounts_web_account_path, :class => 'btn btn-small pull-right' %>
</h3>
</div>
<div class="row">
<div class="span2">
<ul class="well nav nav nav-list">
<li class="nav-header">Groups</li>
<% @groups.each do |group| %>
<li <%= active_class_if(accounts_grouped_web_path(:group => group.name)) %> ><%= link_to "#{group.name}", accounts_grouped_web_path(:group => group.name) %></li>
<% end %>
</ul>
</div>
<div class="span10 web-accounts">
<table class='table table-striped table-bordered table-condensed'>
<thead>
<tr>
<th>Title</th>
<th>Username</th>
<th>Last Modified</th>
<th></th>
</tr>
</thead>
<tbody>
<% @accounts.each do |account| %>
<tr>
<td><%= account.title %></td>
<td><%= account.username %></td>
<td><%= fmt_datetime(account.updated_at) %></td>
<td><%= link_to 'View', accounts_web_account_path(account) %></td>
</tr>
<% end %>
</tbody>
</table>
</div>
Jump to Line
Something went wrong with that request. Please try again.