Sha256: d13e9c1bfe1785de2317f6da27808496235e63cdf8830ea3476463f91fe2412d
Contents?: true
Size: 1.05 KB
Versions: 3
Compression:
Stored size: 1.05 KB
Contents
- title Radmin::I18n.t(:users,:default => "Users") %span.toolbar = link_to Radmin::I18n.t(:new_user,:default => "New"), new_admin_user_path if can? :create, Radmin::User %p.intro= Radmin::I18n.t(:users_list_intro,:default => "Users with access to admin panel.") %table %thead %th= Radmin::User.human_attribute_name("email") %th= Radmin::User.human_attribute_name("roles") %th.last %tbody - @users.each do |user| %tr %td= link_to h(user.email), edit_admin_user_path(user) %td= user.roles.collect {|r| Radmin::I18n.t(r.name.underscore.to_sym,:default=>h(r.name.capitalize))}.join(",") %td.last = link_to Radmin::I18n.t(:edit,:default => "Edit"), edit_admin_user_path(user), :class => "edit" if can? :update, Radmin::User, :id => user.id - if can? :destroy, Radmin::User, :id => user.id | \#{link_to Radmin::I18n.t(:delete,:default => "Delete"), admin_user_path(user), :confirm => Radmin::I18n.t(:are_you_sure,:default => "Are you sure?"), :method => :delete, :class => "delete"}
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
radmin-0.3.3 | app/views/radmin/users/index.html.haml |
radmin-0.3.2 | app/views/radmin/users/index.html.haml |
radmin-0.3.1 | app/views/radmin/users/index.html.haml |