|
40 | 40 | %h4= t 'admin.dashboard.features' |
41 | 41 | %ul |
42 | 42 | %li |
43 | | - = link_to t('admin.dashboard.feature_registrations'), edit_admin_settings_path |
44 | | - - if @registrations_enabled |
45 | | - %span.pull-right.positive-hint= fa_icon 'check fw' |
46 | | - - else |
47 | | - %span.pull-right.negative-hint= fa_icon 'times fw' |
48 | | - %li |
49 | | - = link_to t('admin.dashboard.feature_invites'), edit_admin_settings_path |
50 | | - - if @invites_enabled |
51 | | - %span.pull-right.positive-hint= fa_icon 'check fw' |
52 | | - - else |
53 | | - %span.pull-right.negative-hint= fa_icon 'times fw' |
54 | | - %li |
55 | | - = link_to t('admin.dashboard.feature_deletions'), edit_admin_settings_path |
56 | | - - if @deletions_enabled |
57 | | - %span.pull-right.positive-hint= fa_icon 'check fw' |
58 | | - - else |
59 | | - %span.pull-right.negative-hint= fa_icon 'times fw' |
60 | | - %li |
61 | | - = link_to t('admin.dashboard.feature_profile_directory'), edit_admin_settings_path |
62 | | - - if @profile_directory |
63 | | - %span.pull-right.positive-hint= fa_icon 'check fw' |
64 | | - - else |
65 | | - %span.pull-right.negative-hint= fa_icon 'times fw' |
66 | | - %li |
67 | | - = link_to t('admin.dashboard.feature_relay'), admin_relays_path |
68 | | - - if @relay_enabled |
69 | | - %span.pull-right.positive-hint= fa_icon 'check fw' |
70 | | - - else |
71 | | - %span.pull-right.negative-hint= fa_icon 'times fw' |
| 43 | + = feature_hint(link_to(t('admin.dashboard.feature_registrations'), edit_admin_settings_path), @registrations_enabled) |
| 44 | + %li |
| 45 | + = feature_hint(link_to(t('admin.dashboard.feature_invites'), edit_admin_settings_path), @invites_enabled) |
| 46 | + %li |
| 47 | + = feature_hint(link_to(t('admin.dashboard.feature_deletions'), edit_admin_settings_path), @deletions_enabled) |
| 48 | + %li |
| 49 | + = feature_hint(link_to(t('admin.dashboard.feature_profile_directory'), edit_admin_settings_path), @profile_directory) |
| 50 | + %li |
| 51 | + = feature_hint(link_to(t('admin.dashboard.feature_timeline_preview'), edit_admin_settings_path), @timeline_preview) |
| 52 | + %li |
| 53 | + = feature_hint(link_to(t('admin.dashboard.feature_relay'), admin_relays_path), @relay_enabled) |
72 | 54 |
|
73 | 55 | .dashboard__widgets__versions |
74 | 56 | %div |
|
103 | 85 | %h4= t 'admin.dashboard.config' |
104 | 86 | %ul |
105 | 87 | %li |
106 | | - = t('admin.dashboard.search') |
107 | | - - if @search_enabled |
108 | | - %span.pull-right.positive-hint= fa_icon 'check fw' |
109 | | - - else |
110 | | - %span.pull-right.negative-hint= fa_icon 'times fw' |
111 | | - %li |
112 | | - = t('admin.dashboard.single_user_mode') |
113 | | - - if @single_user_mode |
114 | | - %span.pull-right.positive-hint= fa_icon 'check fw' |
115 | | - - else |
116 | | - %span.pull-right.negative-hint= fa_icon 'times fw' |
117 | | - %li |
118 | | - LDAP |
119 | | - - if @ldap_enabled |
120 | | - %span.pull-right.positive-hint= fa_icon 'check fw' |
121 | | - - else |
122 | | - %span.pull-right.negative-hint= fa_icon 'times fw' |
123 | | - %li |
124 | | - CAS |
125 | | - - if @cas_enabled |
126 | | - %span.pull-right.positive-hint= fa_icon 'check fw' |
127 | | - - else |
128 | | - %span.pull-right.negative-hint= fa_icon 'times fw' |
129 | | - %li |
130 | | - SAML |
131 | | - - if @saml_enabled |
132 | | - %span.pull-right.positive-hint= fa_icon 'check fw' |
133 | | - - else |
134 | | - %span.pull-right.negative-hint= fa_icon 'times fw' |
135 | | - %li |
136 | | - PAM |
137 | | - - if @pam_enabled |
138 | | - %span.pull-right.positive-hint= fa_icon 'check fw' |
139 | | - - else |
140 | | - %span.pull-right.negative-hint= fa_icon 'times fw' |
141 | | - %li |
142 | | - = t 'admin.dashboard.hidden_service' |
143 | | - - if @hidden_service |
144 | | - %span.pull-right.positive-hint= fa_icon 'check fw' |
145 | | - - else |
146 | | - %span.pull-right.negative-hint= fa_icon 'times fw' |
| 88 | + = feature_hint(t('admin.dashboard.search'), @search_enabled) |
| 89 | + %li |
| 90 | + = feature_hint(t('admin.dashboard.single_user_mode'), @single_user_mode) |
| 91 | + %li |
| 92 | + = feature_hint('LDAP', @ldap_enabled) |
| 93 | + %li |
| 94 | + = feature_hint('CAS', @cas_enabled) |
| 95 | + %li |
| 96 | + = feature_hint('SAML', @saml_enabled) |
| 97 | + %li |
| 98 | + = feature_hint('PAM', @pam_enabled) |
| 99 | + %li |
| 100 | + = feature_hint(t('admin.dashboard.hidden_service'), @hidden_service) |
147 | 101 |
|
148 | 102 | .dashboard__widgets__trends |
149 | 103 | %div |
|
0 commit comments