app/views/roles/index.html.erb in mcms_authentication-0.0.2 vs app/views/roles/index.html.erb in mcms_authentication-0.0.3
- old
+ new
@@ -14,60 +14,89 @@
@Purpose :Listing all roles
-->
-<div id="main-content">
- <div id="records">
+<% content_for :head do %>
- <div class="add-user">
+ <%= javascript_include_tag "application","authentication_global" %>
+ <%= stylesheet_link_tag "authentication_global",:media => "all" %>
- <a href="<%= new_role_path %>">
+<% end %>
- <div style="float: left;">
+ <div class="news">
- <%= image_tag "/assets/icons/add.png" %>
- </div>
+ <% @roles.each do |role| %>
+ <div class="alert "><div class="body"><span class="mini-icon mini-icon-issue-comment"></span>
- <div style="float: left;padding-left: 5px;">
+ <div class="title" style="float: left;">
+ <a href="#"><%= role.title %></a>
+ <span> was added </span> about
- Add new role
+ <time class="js-relative-date"><%= distance_of_time_in_words(role.created_at,Time.now) %> ago</time>
+ </div>
- </div>
+ <!-- Super user should not be deleted -->
+ <div style="float: right;">
+
+ <% unless role.title == "superuser" %>
+ <%= link_to image_tag("/assets/icons/delete.png" ,:alt=> "user_delete" ,:height => "16 px" ,:width => "16 px;"), role ,:confirm => "Are you sure u want to remove #{role.title} ?", :method => :delete %>
- </a>
+ <%= link_to image_tag("/assets/icons/application_edit.png" ,:alt=> "User_edit" ,:height => "16 px" ,:width => "16 px;"), edit_role_path(role) %>
+ <% end %>
+
+ </div>
- </div>
+ <div style="clear: both"></div>
- <% @roles.each do |role| %>
+ </div></div>
+ <% end %>
- <div class="clearfix record <%= cycle("odd", "even") %>" > <!-- alternative div css change -->
- <span class="title">
+ </div>
- <span class="preview">
- <strong> <%= role.title %></strong>
- </span>
- </span>
+ <div id="your-repos" class="repos">
+ <div class="top-bar">
+ <h2>Quick tasks </h2>
+ <a class="button new-repo" href="<%= new_role_path %>">Add new role</a>
+ </div>
- <span class="actions">
- <% unless role.title == "superuser" %>
- <%= link_to image_tag("/assets/icons/delete.png" ,:alt=> "user_delete" ,:height => "16 px" ,:width => "16 px;"), role ,:confirm => "Are you sure u want to remove #{role.title} ?", :method => :delete %>
+ <ul class="repo-list" >
- <%= link_to image_tag("/assets/icons/application_edit.png" ,:alt=> "User_edit" ,:height => "16 px" ,:width => "16 px;"), edit_role_path(role) %>
- <% end %>
- </span>
+ <li class="public source">
+ <a href="/mcms/roles/">
+ <span class="mini-icon "></span>
+ <span class="owner">Roles</span><span class="repo"></span>
+ <span class="arrow"></span>
+ </a>
+ </li>
- </div>
-
- <% end %>
+ <li class="public source">
+ <a href="/mcms/users/new">
+ <span class="mini-icon "></span>
+ <span class="owner">New User</span> <span class="repo"></span>
+ <span class="arrow"></span>
+ </a>
+ </li>
+ <li class="public source">
+ <a href="/mcms/role/new">
+ <span class="mini-icon "></span>
+ <span class="owner">Add new role</span><span class="repo"></span>
+ <span class="arrow"></span>
+ </a>
+ </li>
+
+ </ul>
+ <div class="bottom-bar">
+ </div>
</div>
-
-</div>
-<!-- End of listing -->
+
+
+
+<!-- End of user listing -->
\ No newline at end of file