Sha256: d50278f4c29fabe8ded8f74f603c22ccf1025ee5af405e2572356ea1fdc111bb
Contents?: true
Size: 861 Bytes
Versions: 3
Compression:
Stored size: 861 Bytes
Contents
<h1>Perfil</h1> <div class="actions"> <%= link_to "Editar", edit_role_path(@role) %> </div> <ul> <li>Name: <%= @role.name %></li> <li>Active: <%= @role.active %></li> </ul> <div id="features"> <h3>Funcionalidades</h3> <ul> <% @role.features.each do |feature| %> <li><%= feature.name %></li> <% end %> </ul> </div> <div id="user_groups"> <h3>Usuários vinculados</h3> <% if @role.group_users.present? %> <ul> <% @role.group_users.group(:group_id).each do |gu| %> <h4>Grupo <%= link_to gu.group.name, gu.group %></h4> <% @role.group_users.where(group_id:gu.group_id).each do |group_user|%> <ul> <li><%= link_to group_user.user.name, group_user.user %></li> </ul> <% end %> <% end %> </ul> <% end %> </div> <%= link_to "Voltar", roles_path %>
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
curupira-0.1.7 | app/views/curupira/roles/show.html.erb |
curupira-0.1.6 | app/views/curupira/roles/show.html.erb |
curupira-0.1.4 | app/views/curupira/roles/show.html.erb |