diff options
Diffstat (limited to 'app/views/page_translations')
| -rw-r--r-- | app/views/page_translations/edit.html.erb | 14 | ||||
| -rw-r--r-- | app/views/page_translations/show.html.erb | 24 |
2 files changed, 19 insertions, 19 deletions
diff --git a/app/views/page_translations/edit.html.erb b/app/views/page_translations/edit.html.erb index 00bf221e..2b2ce137 100644 --- a/app/views/page_translations/edit.html.erb +++ b/app/views/page_translations/edit.html.erb | |||
| @@ -19,7 +19,7 @@ | |||
| 19 | <%= link_to "Preview ↗", preview_page_path(@page, :locale => @locale), target: "_blank", rel: "noopener", class: "preview_link" %> | 19 | <%= link_to "Preview ↗", preview_page_path(@page, :locale => @locale), target: "_blank", rel: "noopener", class: "preview_link" %> |
| 20 | </div> | 20 | </div> |
| 21 | 21 | ||
| 22 | <div id="page_editor"> | 22 | <div id="admin_layout"> |
| 23 | <ul id="related_asset_list" style="display:none"> | 23 | <ul id="related_asset_list" style="display:none"> |
| 24 | <% @page.related_assets.includes(:asset).each do |related| %> | 24 | <% @page.related_assets.includes(:asset).each do |related| %> |
| 25 | <li data-large-url="<%= related.asset.upload.url(:large) %>" | 25 | <li data-large-url="<%= related.asset.upload.url(:large) %>" |
| @@ -32,17 +32,17 @@ | |||
| 32 | <%= form_with url: node_translation_path(@node, @locale), method: :patch, local: true, id: "translation_edit_form", | 32 | <%= form_with url: node_translation_path(@node, @locale), method: :patch, local: true, id: "translation_edit_form", |
| 33 | data: { autosave_url: autosave_node_translation_path(@node, @locale), show_url: node_path(@node) } do |f| %> | 33 | data: { autosave_url: autosave_node_translation_path(@node, @locale), show_url: node_path(@node) } do |f| %> |
| 34 | <div id="content"> | 34 | <div id="content"> |
| 35 | <div class="node_description">Title</div> | 35 | <div class="layout_row_label">Title</div> |
| 36 | <div class="node_content"> | 36 | <div class="layout_row_content"> |
| 37 | <%= text_field_tag "page[title]", @translation&.title %> | 37 | <%= text_field_tag "page[title]", @translation&.title %> |
| 38 | </div> | 38 | </div> |
| 39 | 39 | ||
| 40 | <div class="node_description">Abstract</div> | 40 | <div class="layout_row_label">Abstract</div> |
| 41 | <div class="node_content"> | 41 | <div class="layout_row_content"> |
| 42 | <%= text_area_tag "page[abstract]", @translation&.abstract %> | 42 | <%= text_area_tag "page[abstract]", @translation&.abstract %> |
| 43 | </div> | 43 | </div> |
| 44 | 44 | ||
| 45 | <div class="node_description">Body</div> | 45 | <div class="layout_row_label">Body</div> |
| 46 | <div class="body_toolbar_row"> | 46 | <div class="body_toolbar_row"> |
| 47 | <button type="button" id="preview_toggle" class="view_toggle" aria-pressed="false" aria-label="Toggle live preview" title="Toggle live preview"> | 47 | <button type="button" id="preview_toggle" class="view_toggle" aria-pressed="false" aria-label="Toggle live preview" title="Toggle live preview"> |
| 48 | <%= icon("layout-sidebar-right", library: "tabler", "aria-hidden": true) %> <span>Live preview</span> | 48 | <%= icon("layout-sidebar-right", library: "tabler", "aria-hidden": true) %> <span>Live preview</span> |
| @@ -54,7 +54,7 @@ | |||
| 54 | 54 | ||
| 55 | <div id="editor_and_preview"> | 55 | <div id="editor_and_preview"> |
| 56 | <div class="preview_content"> | 56 | <div class="preview_content"> |
| 57 | <div class="node_content"> | 57 | <div class="layout_row_content"> |
| 58 | <%= text_area_tag "page[body]", @translation&.body, :class => 'with_editor' %> | 58 | <%= text_area_tag "page[body]", @translation&.body, :class => 'with_editor' %> |
| 59 | </div> | 59 | </div> |
| 60 | </div> | 60 | </div> |
diff --git a/app/views/page_translations/show.html.erb b/app/views/page_translations/show.html.erb index 60eb7cf7..c4091fc3 100644 --- a/app/views/page_translations/show.html.erb +++ b/app/views/page_translations/show.html.erb | |||
| @@ -5,25 +5,25 @@ | |||
| 5 | <div class="translation_compare"> | 5 | <div class="translation_compare"> |
| 6 | <div class="translation_compare_column"> | 6 | <div class="translation_compare_column"> |
| 7 | <h2><%= @locale.to_s.upcase %></h2> | 7 | <h2><%= @locale.to_s.upcase %></h2> |
| 8 | <div class="node_description">Title</div> | 8 | <div class="layout_row_label">Title</div> |
| 9 | <div class="node_content"><%= @translation&.title %></div> | 9 | <div class="layout_row_content"><%= @translation&.title %></div> |
| 10 | 10 | ||
| 11 | <div class="node_description">Abstract</div> | 11 | <div class="layout_row_label">Abstract</div> |
| 12 | <div class="node_content"><%= sanitize(@translation&.abstract.to_s) %></div> | 12 | <div class="layout_row_content"><%= sanitize(@translation&.abstract.to_s) %></div> |
| 13 | 13 | ||
| 14 | <div class="node_description">Body</div> | 14 | <div class="layout_row_label">Body</div> |
| 15 | <div class="node_content"><%= sanitize(@translation&.body.to_s) %></div> | 15 | <div class="layout_row_content"><%= sanitize(@translation&.body.to_s) %></div> |
| 16 | </div> | 16 | </div> |
| 17 | 17 | ||
| 18 | <div class="translation_compare_column"> | 18 | <div class="translation_compare_column"> |
| 19 | <h2><%= I18n.default_locale.to_s.upcase %> (default)</h2> | 19 | <h2><%= I18n.default_locale.to_s.upcase %> (default)</h2> |
| 20 | <div class="node_description">Title</div> | 20 | <div class="layout_row_label">Title</div> |
| 21 | <div class="node_content"><%= @default_translation&.title %></div> | 21 | <div class="layout_row_content"><%= @default_translation&.title %></div> |
| 22 | 22 | ||
| 23 | <div class="node_description">Abstract</div> | 23 | <div class="layout_row_label">Abstract</div> |
| 24 | <div class="node_content"><%= sanitize(@default_translation&.abstract.to_s) %></div> | 24 | <div class="layout_row_content"><%= sanitize(@default_translation&.abstract.to_s) %></div> |
| 25 | 25 | ||
| 26 | <div class="node_description">Body</div> | 26 | <div class="layout_row_label">Body</div> |
| 27 | <div class="node_content"><%= sanitize(@default_translation&.body.to_s) %></div> | 27 | <div class="layout_row_content"><%= sanitize(@default_translation&.body.to_s) %></div> |
| 28 | </div> | 28 | </div> |
| 29 | </div> | 29 | </div> |
