-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Began to change views and top menu to match revised info arch
- Loading branch information
Showing
5 changed files
with
88 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,41 @@ | ||
<section class="C no"> | ||
<header class="C-header"> | ||
<h1>All User Groups <%= link_to 'New Group', new_group_path, :class => "button" %></h1> | ||
</header> | ||
<div class="C-cont"> | ||
<article> | ||
|
||
<table> | ||
<tr> | ||
<th>Name</th> | ||
<th>Actions</th> | ||
</tr> | ||
|
||
<% @groups.each do |group| %> | ||
<tr> | ||
<td><%= group.name %><%= " (Private)" if cannot? :read, group %></td> | ||
<td> | ||
<%= link_to 'Show', group if can? :read, group %> | ||
<%= link_to 'Edit', edit_group_path(group) if can? :update, group %> | ||
<%= link_to 'Destroy', group, :confirm => 'Are you sure?', :method => :delete if can? :destroy, group %> | ||
<%= link_to "Join", group_memberships_path(:group_id => group.id, :membership => {:user_id => current_user.id}), :method => :post if user_signed_in? & !group.made_request?(current_user) %></td> | ||
</tr> | ||
<% end %> | ||
</table> | ||
</article> | ||
<div class="clear"></div> | ||
<div class="row-fluid"> | ||
<div class="span9"> | ||
<section class="C"> | ||
<header class="C-header"> | ||
<h1>All Groups <%= link_to 'New Group', new_group_path, :class => "button" %></h1> | ||
</header> | ||
<div class="C-cont"> | ||
<ul class="SL"> | ||
<% @groups.each do |group| %> | ||
<li> | ||
<h3> | ||
<%= link_to group, :class => "link-hl" do %> | ||
<%= group.name %> | ||
<% end %> | ||
<% if can? :update, group %> | ||
<small><%= link_to "[#{t(:edit)}]", edit_group_path(group) %></small> | ||
<% end %> | ||
</h3> | ||
<%= link_to "Join", group_memberships_path(:group_id => group.id, :membership => {:user_id => current_user.id}), :method => :post if user_signed_in? & !group.made_request?(current_user) %></td> | ||
<p class="indented">Members: | ||
List... | ||
</p> | ||
</li> | ||
<% end %> | ||
</ul> | ||
<div class="clear"></div> | ||
</div> | ||
</section> | ||
</div> | ||
</section> | ||
<div class="span3"> | ||
<section class="C"> | ||
<header class="C-header"> | ||
<h1><%= t(:users) %></h1> | ||
</header> | ||
<div class="C-cont"> | ||
| ||
<div class="clear"></div> | ||
</div> | ||
</section> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,24 @@ | ||
<section class="C"> | ||
<header class="C-header" id="screens-header"> | ||
<h1>All Screens <%= link_to 'New Screen', new_screen_path, :class => "btn" if can? :create, Screen %></h1> | ||
</header> | ||
<div id="screens-body" class="C-cont"> | ||
<%= render :partial => "screens/index_body" %> | ||
<div class="clear"></div> | ||
<div class="row-fluid"> | ||
<div class="span9"> | ||
<section class="C"> | ||
<header class="C-header" id="screens-header"> | ||
<h1>All Screens <%= link_to 'New Screen', new_screen_path, :class => "btn" if can? :create, Screen %></h1> | ||
</header> | ||
<div id="screens-body" class="C-cont"> | ||
<%= render :partial => "screens/index_body" %> | ||
<div class="clear"></div> | ||
</div> | ||
</section> | ||
</div> | ||
</section> | ||
<div class="span3"> | ||
<section class="C"> | ||
<header class="C-header"> | ||
<h1>Templates</h1> | ||
</header> | ||
<div class="C-cont"> | ||
<%= render :partial => "templates/index_body" %> | ||
<div class="clear"></div> | ||
</div> | ||
</section> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters