Sha256: 2c56a2a38f03107e30909f0d713cf47925de705d5e8f44f89efc5d7632a7ccca
Contents?: true
Size: 1.01 KB
Versions: 5
Compression:
Stored size: 1.01 KB
Contents
<% usman_items = { users: { text: "Users", icon_class: "fa-group", url: usman.users_url, has_permission: @current_user.has_read_permission?(User) }, registrations: { text: "Registrations", icon_class: "fa-mobile", url: usman.registrations_url, has_permission: @current_user.has_read_permission?(Registration) }, roles: { text: "Roles", icon_class: "linecons-graduation-cap", url: usman.roles_url, has_permission: @current_user.has_read_permission?(Role) }, permissions: { text: "Permissions", icon_class: "fa-lock", url: usman.permissions_url, has_permission: @current_user.has_read_permission?(Permission) }, } %> <% if (usman_items.map{|x, y| y[:has_permission] }).compact.uniq.any? %> <h3 class="text-gray mt-50 mb-10"> Manage User <br> <small class="text-muted">Manage Users, Role and much more...</small> </h3> <hr class="mb-30" style="border-top:1px solid #ddd;"> <%= render partial: "/layouts/dashboard/items", locals: { items: usman_items } %> <% end %>
Version data entries
5 entries across 5 versions & 1 rubygems