@@ -19,56 +19,59 @@ section.container
1919 .row .my-3
2020 .col
2121 h4 = t ' views.roles.current'
22- table .table .table-hover .table-sm .m-2 .table-responsive
23- thead
24- tr
25- th .col-2 [scope =' col' ] = UserRole .human_attribute_name :role
26- th .col-4 [scope =' col' ] = UserRole .human_attribute_name :start_time
27- th .col-4 [scope =' col' ] = UserRole .human_attribute_name :end_time
28- th .col-2
29- tbody
30- - @user .user_roles.order(end_time: :desc ).each do |ur |
22+ .table-responsive-lg
23+ table .table .table-hover .table-sm .m-2
24+ thead
3125 tr
32- td = ur.role.localized_name
33- td = ur.start_time.localtime
34- td = ur.end_time&.localtime
35- td
36- = form_tag fauna_user_role_assignment_path(id: ur.role_id), method: :delete , class : ' d-grid' do
37- = hidden_field_tag :start_time , value: ur.start_time
38- = button_tag icon(' fa-solid' , :close , t(' views.roles.deactivate' )), class : ' btn btn-danger btn-sm m-0'
26+ th .col-2 [scope =' col' ] = UserRole .human_attribute_name :role
27+ th .col-4 [scope =' col' ] = UserRole .human_attribute_name :start_time
28+ th .col-4 [scope =' col' ] = UserRole .human_attribute_name :end_time
29+ th .col-2
30+ tbody
31+ - @user .user_roles.order(end_time: :desc ).each do |ur |
32+ tr
33+ td = ur.role.localized_name
34+ td = ur.start_time.localtime
35+ td = ur.end_time&.localtime
36+ td
37+ = form_tag fauna_user_role_assignment_path(id: ur.role_id), method: :delete , class : ' d-grid' do
38+ = hidden_field_tag :start_time , value: ur.start_time
39+ = button_tag icon(' fa-solid' , :close , t(' views.roles.deactivate' )), class : ' btn btn-danger btn-sm m-0'
3940 hr
4041 h4 = t ' views.roles.future'
41- table .table .table-hover .table-sm .m-2 .table-responsive
42- thead
43- tr
44- th .col-2 [scope =' col' ] = UserRole .human_attribute_name :role
45- th .col-4 [scope =' col' ] = UserRole .human_attribute_name :start_time
46- th .col-4 [scope =' col' ] = UserRole .human_attribute_name :end_time
47- th .col-2
48- tbody
49- - @user .user_roles.future.order(end_time: :desc ).each do |ur |
42+ .table-responsive-lg
43+ table .table .table-hover .table-sm .m-2
44+ thead
5045 tr
51- td = ur.role.localized_name
52- td = ur.start_time.localtime
53- td = ur.end_time&.localtime
54- td
55- = form_tag fauna_user_role_assignment_path(id: ur.role_id), method: :delete , class : ' d-grid' do
56- = hidden_field_tag :start_time , value: ur.start_time
57- = button_tag icon(' fa-solid' , :trash , t(' views.roles.cancel' )), class : ' btn btn-danger btn-sm m-0'
46+ th .col-2 [scope =' col' ] = UserRole .human_attribute_name :role
47+ th .col-4 [scope =' col' ] = UserRole .human_attribute_name :start_time
48+ th .col-4 [scope =' col' ] = UserRole .human_attribute_name :end_time
49+ th .col-2
50+ tbody
51+ - @user .user_roles.future.order(end_time: :desc ).each do |ur |
52+ tr
53+ td = ur.role.localized_name
54+ td = ur.start_time.localtime
55+ td = ur.end_time&.localtime
56+ td
57+ = form_tag fauna_user_role_assignment_path(id: ur.role_id), method: :delete , class : ' d-grid' do
58+ = hidden_field_tag :start_time , value: ur.start_time
59+ = button_tag icon(' fa-solid' , :trash , t(' views.roles.cancel' )), class : ' btn btn-danger btn-sm m-0'
5860 hr
5961 h4 = t ' views.roles.expired'
60- table .table .table-hover .table-sm .m-2 .table-responsive
61- thead
62- tr
63- th .col-2 [scope =' col' ] = UserRole .human_attribute_name :role
64- th .col-4 [scope =' col' ] = UserRole .human_attribute_name :start_time
65- th .col-4 [scope =' col' ] = UserRole .human_attribute_name :end_time
66- th .col-2
67-
68- tbody
69- - @user .user_roles.expired.order(end_time: :desc ).each do |ur |
62+ .table-responsive-lg
63+ table .table .table-hover .table-sm .m-2
64+ thead
7065 tr
71- td = ur.role.localized_name
72- td = ur.start_time.localtime
73- td = ur.end_time&.localtime
74- td
66+ th .col-2 [scope =' col' ] = UserRole .human_attribute_name :role
67+ th .col-4 [scope =' col' ] = UserRole .human_attribute_name :start_time
68+ th .col-4 [scope =' col' ] = UserRole .human_attribute_name :end_time
69+ th .col-2
70+
71+ tbody
72+ - @user .user_roles.expired.order(end_time: :desc ).each do |ur |
73+ tr
74+ td = ur.role.localized_name
75+ td = ur.start_time.localtime
76+ td = ur.end_time&.localtime
77+ td
0 commit comments