Config Controller für Administration

This commit is contained in:
Andreas Stephanides
2013-02-16 11:02:47 +01:00
parent a8731f926f
commit bcc6de5349
6 changed files with 32 additions and 12 deletions

View File

@@ -0,0 +1,7 @@
<h1>Admin Panel</h1>
<ul class="nav">
<li>
<%= link_to '<i class="icon-user"></i>'.html_safe + 'Userverwaltung',:controller =>"users",:action => "index" %>
</li>
</ul>

View File

@@ -22,3 +22,4 @@
<% elsif I18n.locale == :de %>
<%= link_to "English" ,switch_locale_url(:en)%>
<%end %>
<%= link_to 'Admin',:controller =>"config",:action => "index" %>

View File

@@ -1,8 +1,14 @@
<ul class="breadcrumb">
<li>
<%= link_to "Admin" , :controller =>"config" , :action => "index"%>
</li>
</ul>
<table class="table">
<% @users.each do |user|%>
<tr>
<th>
<%= user.email %></th><td><ul>
<tr><th>Name</th><th>E-Mail</th><th>Rollen</th>
</tr><tr><td></td>
<td>
<%= user.email %></td><td><ul>
<% user.roles.each do |role| %>
<li><%= role.name%></li>
<% end %></ul></td>