File tree Expand file tree Collapse file tree
assets/stylesheets/alchemy-devise
views/alchemy/admin/users Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 width : 50% ;
66 }
77}
8-
9- .icon {
10-
11- & .user {
12- background-position : 0 -104px ;
13-
14- & .female {
15- background-position : -128px -104px ;
16- }
17- }
18-
19- & .user_add {
20- background-position : -96px -104px ;
21- }
22-
23- & .user_delete {
24- background-position : -32px -104px ;
25-
26- & .female {
27- background-position : -160px -104px ;
28- }
29- }
30-
31- & .user_edit {
32- background-position : -64px -104px ;
33-
34- & .female {
35- background-position : -192px -104px ;
36- }
37- }
38- }
39-
40- span .module.users {
41- background-position : -80px 0 ;
42- }
Original file line number Diff line number Diff line change 11< tr class ="<%= cycle ( 'even' , 'odd' ) %> ">
2- < td class ="icon "> <%= content_tag 'span' , '' , class : "icon user#{ user . gender == 'female' ? ' female' : ' male' } " %> </ td >
3- < td >
4- <%= render_icon ( user . logged_in? ? 'online' : 'offline' ) %>
2+ < td class ="icon ">
3+ <%= render_icon ( :user , style : user . logged_in? ? 'solid' : 'regular' ) %>
54 </ td >
65 < td class ="login "> <%= user . login %> </ td >
76 < td class ="name "> <%= user . firstname %> </ td >
1514 <%= delete_button alchemy . admin_user_path ( user ) , {
1615 message : Alchemy . t ( :confirm_to_delete_user ) ,
1716 title : Alchemy . t ( :delete_user ) ,
18- icon : "user_delete #{ user . gender == 'female' ? ' female' : ' male' } "
17+ icon : :minus
1918 } %>
2019 <% end %>
2120 <% if can? ( :edit , user ) %>
22- <%= link_to_dialog '' ,
21+ <%= link_to_dialog render_icon ( :edit ) ,
2322 alchemy . edit_admin_user_path ( user ) , {
2423 title : Alchemy . t ( :edit_user ) ,
2524 overflow : true ,
2625 size : '430x560'
27- } , {
28- class : "icon user_edit#{ user . gender == 'female' ? ' female' : ' male' } " ,
29- title : Alchemy . t ( :edit_user )
30- }
31- %>
26+ } ,
27+ title : Alchemy . t ( :edit_user ) %>
3228 <% end %>
3329 </ td >
3430</ tr >
Original file line number Diff line number Diff line change 11<%= toolbar(
22 buttons: [
33 {
4- icon: 'user_add' ,
4+ icon: :plus ,
55 label: Alchemy.t(:create_user),
66 url: alchemy.new_admin_user_path,
77 title: Alchemy.t(:create_user),
2323 < thead >
2424 < tr >
2525 < th class ="icon "> </ th >
26- < th class ="login_status "> </ th >
2726 < th class ="login ">
2827 <%= sort_link @query , :login , hide_indicator : true %>
2928 </ th >
You can’t perform that action at this time.
0 commit comments