app/views/admin/users/index.html.haml in radiant-0.8.2 vs app/views/admin/users/index.html.haml in radiant-0.9.0.rc2
- old
+ new
@@ -1,35 +1,38 @@
-%h1 Users
+- @page_title = t('users') + ' - ' + default_page_title
-= render_region :top
+= render_region :top
-%table#users.index{:cellspacing=>"0", :border=>"0", :cellpadding=>"0"}
- %thead
- %tr
- - render_region :thead do |thead|
- - thead.title_header do
- %th.user Name / Login
- - thead.roles_header do
- %th.roles Roles
- - thead.modify_header do
- %th.modify Modify
- %tbody
- - @users.each do |user|
- %tr.node.level-1
- - render_region :tbody do |tbody|
- - tbody.title_cell do
- %td.user
- = link_to user.name, edit_admin_user_url(user)
- %small.login= h user.login
- - tbody.roles_cell do
- %td.roles= roles(user)
- - tbody.modify_cell do
- %td.remove
- - if user == current_user
- = image('remove-disabled', :alt => 'Remove')
- - else
- = link_to(image('remove', :alt => 'Remove User'), remove_admin_user_url(user))
+.outset
+ %table#users.index
+ %thead
+ %tr
+ - render_region :thead do |thead|
+ - thead.title_header do
+ %th.user== #{t('name')} / #{t('username')}
+ - thead.roles_header do
+ %th.roles= t('roles')
+ - thead.modify_header do
+ %th.modify= t('modify')
+ %tbody
+ - @users.each do |user|
+ %tr.node.level_1
+ - render_region :tbody do |tbody|
+ - tbody.title_cell do
+ %td.user
+ = link_to image_tag(gravatar_url(user.email, :size=>"32px"), :class=>"avatar avatar_32x32", :width=>32, :height=>32, :alt=>""), edit_admin_user_url(user)
+ = link_to user.name, edit_admin_user_url(user)
+ %span.login= h user.login
+ - tbody.roles_cell do
+ %td.roles= roles(user)
+ - tbody.modify_cell do
+ %td.remove
+ - if user == current_user
+ %span.disabled= t('remove')
+ - else
+ = link_to t('remove'), remove_admin_user_url(user)
- render_region :bottom do |bottom|
- bottom.new_button do
- %p
- = link_to image('new-user', :alt => 'New User'), new_admin_user_url, :title => "New User"
\ No newline at end of file
+ #actions
+ %ul
+ %li= link_to image('plus') + " " + t('new_user'), new_admin_user_url