|
36 | 36 | </span> |
37 | 37 | <% else %> |
38 | 38 | <sl-tooltip |
39 | | - content="<%= Alchemy.t("Your user role does not allow you to edit this page") %>" |
| 39 | + content="<%= t(:cannot_edit_page) %>" |
40 | 40 | class="like-hint-tooltip" |
41 | 41 | placement="bottom-start" |
42 | 42 | > |
|
51 | 51 | <%= link_to( |
52 | 52 | @page.name, |
53 | 53 | url(:edit_page), |
54 | | - title: Alchemy.t(:edit_page), |
| 54 | + title: t(:edit_page), |
55 | 55 | class: "sitemap_pagename_link" |
56 | 56 | ) %> |
57 | 57 | <% else %> |
|
88 | 88 |
|
89 | 89 | <div class="sitemap_right_tools"> |
90 | 90 | <% if can?(:info) %> |
91 | | - <sl-tooltip content="<%= Alchemy.t(:page_infos) %>"> |
| 91 | + <sl-tooltip content="<%= t(:page_infos) %>"> |
92 | 92 | <%= link_to_dialog( |
93 | 93 | render_icon("information"), |
94 | 94 | url(:info_page), |
95 | 95 | { |
96 | | - title: Alchemy.t(:page_infos), |
| 96 | + title: t(:page_infos), |
97 | 97 | size: "520x290" |
98 | 98 | }, |
99 | 99 | class: "icon_button" |
|
102 | 102 | <% else %> |
103 | 103 | <div class="sitemap_tool disabled"> |
104 | 104 | <sl-tooltip |
105 | | - content="<%= Alchemy.t("Your user role does not allow you to edit this page") %>" |
| 105 | + content="<%= t(:cannot_edit_page) %>" |
106 | 106 | class="like-hint-tooltip" |
107 | 107 | placement="bottom-start" |
108 | 108 | > |
|
112 | 112 | <% end %> |
113 | 113 |
|
114 | 114 | <% if can?(:configure) %> |
115 | | - <sl-tooltip content="<%= Alchemy.t(:edit_page_properties) %>"> |
| 115 | + <sl-tooltip content="<%= t(:edit_page_properties) %>"> |
116 | 116 | <%= link_to_dialog( |
117 | 117 | render_icon("settings-3"), |
118 | 118 | url(:configure_page), |
119 | 119 | { |
120 | | - title: Alchemy.t(:edit_page_properties), |
| 120 | + title: t(:edit_page_properties), |
121 | 121 | size: "500x680" |
122 | 122 | }, |
123 | 123 | class: "icon_button" |
|
126 | 126 | <% else %> |
127 | 127 | <div class="sitemap_tool disabled"> |
128 | 128 | <sl-tooltip |
129 | | - content="<%= Alchemy.t("Your user role does not allow you to edit this page") %>" |
| 129 | + content="<%= t(:cannot_edit_page) %>" |
130 | 130 | class="like-hint-tooltip" |
131 | 131 | placement="bottom-start" |
132 | 132 | > |
|
136 | 136 | <% end %> |
137 | 137 |
|
138 | 138 | <% if can?(:copy) %> |
139 | | - <sl-tooltip content="<%= Alchemy.t(:copy_page) %>"> |
| 139 | + <sl-tooltip content="<%= t(:copy_page) %>"> |
140 | 140 | <%= button_to( |
141 | 141 | render_icon("file-copy"), |
142 | 142 | url(:clipboard_insert), |
|
147 | 147 | <% else %> |
148 | 148 | <div class="sitemap_tool disabled"> |
149 | 149 | <sl-tooltip |
150 | | - content="<%= Alchemy.t("Your user role does not allow you to edit this page") %>" |
| 150 | + content="<%= t(:cannot_edit_page) %>" |
151 | 151 | class="like-hint-tooltip" |
152 | 152 | placement="bottom-start" |
153 | 153 | > |
|
157 | 157 | <% end %> |
158 | 158 |
|
159 | 159 | <% if can?(:destroy) %> |
160 | | - <sl-tooltip content="<%= Alchemy.t(:delete_page) %>"> |
| 160 | + <sl-tooltip content="<%= t(:delete_page) %>"> |
161 | 161 | <%= link_to_confirm_dialog( |
162 | 162 | render_icon("delete-bin-2"), |
163 | | - Alchemy.t(:confirm_to_delete_page), |
| 163 | + t(:confirm_to_delete_page), |
164 | 164 | url(:page), |
165 | 165 | class: "icon_button" |
166 | 166 | ) %> |
167 | 167 | </sl-tooltip> |
168 | 168 | <% else %> |
169 | 169 | <div class="sitemap_tool disabled"> |
170 | 170 | <sl-tooltip |
171 | | - content="<%= Alchemy.t("Your user role does not allow you to edit this page") %>" |
| 171 | + content="<%= t(:cannot_edit_page) %>" |
172 | 172 | class="like-hint-tooltip" |
173 | 173 | placement="bottom-start" |
174 | 174 | > |
|
178 | 178 | <% end %> |
179 | 179 |
|
180 | 180 | <% if can?(:create) %> |
181 | | - <sl-tooltip content="<%= Alchemy.t(:create_page) %>"> |
| 181 | + <sl-tooltip content="<%= t(:create_page) %>"> |
182 | 182 | <%= link_to_dialog( |
183 | 183 | render_icon(:add), |
184 | 184 | url(:new_child_page), |
185 | 185 | { |
186 | | - title: Alchemy.t(:create_page), |
| 186 | + title: t(:create_page), |
187 | 187 | size: "340x165", |
188 | 188 | overflow: true |
189 | 189 | }, |
|
193 | 193 | <% else %> |
194 | 194 | <div class="sitemap_tool disabled"> |
195 | 195 | <sl-tooltip |
196 | | - content="<%= Alchemy.t("Your user role does not allow you to edit this page") %>" |
| 196 | + content="<%= t(:cannot_edit_page) %>" |
197 | 197 | class="like-hint-tooltip" |
198 | 198 | placement="bottom-start" |
199 | 199 | > |
|
0 commit comments