diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-07-25 17:45:34 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-07-25 17:45:34 +0200 |
| commit | fe104aa2c52f61cd8555fbc98c20501f50f4aae8 (patch) | |
| tree | 4596bfa52d316c05096e176b88fc004409cabbf9 /app/views/page_translations/show.html.erb | |
| parent | 22c690749e154a5426c4f190fbbc08a5dee2eeee (diff) | |
Extract admin strings to i18n: revisions, page_translations, and menu items,
Diffstat (limited to 'app/views/page_translations/show.html.erb')
| -rw-r--r-- | app/views/page_translations/show.html.erb | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/app/views/page_translations/show.html.erb b/app/views/page_translations/show.html.erb index c4091fc3..0fbcd0b6 100644 --- a/app/views/page_translations/show.html.erb +++ b/app/views/page_translations/show.html.erb | |||
| @@ -1,29 +1,29 @@ | |||
| 1 | <h1>Compare — <%= title_for_node(@node) %></h1> | 1 | <h1><%= t(".title") %> — <%= title_for_node(@node) %></h1> |
| 2 | 2 | ||
| 3 | <p class="node_action_bar standalone_action_bar"><%= link_to 'View revision history', node_revisions_path(@node, :locale => @locale) %></p> | 3 | <p class="node_action_bar standalone_action_bar"><%= link_to t("page_translations.revision_history_link"), node_revisions_path(@node, :locale => @locale) %></p> |
| 4 | 4 | ||
| 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="layout_row_label">Title</div> | 8 | <div class="layout_row_label"><%= Page.human_attribute_name(:title) %></div> |
| 9 | <div class="layout_row_content"><%= @translation&.title %></div> | 9 | <div class="layout_row_content"><%= @translation&.title %></div> |
| 10 | 10 | ||
| 11 | <div class="layout_row_label">Abstract</div> | 11 | <div class="layout_row_label"><%= Page.human_attribute_name(:abstract) %></div> |
| 12 | <div class="layout_row_content"><%= sanitize(@translation&.abstract.to_s) %></div> | 12 | <div class="layout_row_content"><%= sanitize(@translation&.abstract.to_s) %></div> |
| 13 | 13 | ||
| 14 | <div class="layout_row_label">Body</div> | 14 | <div class="layout_row_label"><%= Page.human_attribute_name(:body) %></div> |
| 15 | <div class="layout_row_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 %> (<%= t(".default_marker") %>)</h2> |
| 20 | <div class="layout_row_label">Title</div> | 20 | <div class="layout_row_label"><%= Page.human_attribute_name(:title) %></div> |
| 21 | <div class="layout_row_content"><%= @default_translation&.title %></div> | 21 | <div class="layout_row_content"><%= @default_translation&.title %></div> |
| 22 | 22 | ||
| 23 | <div class="layout_row_label">Abstract</div> | 23 | <div class="layout_row_label"><%= Page.human_attribute_name(:abstract) %></div> |
| 24 | <div class="layout_row_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="layout_row_label">Body</div> | 26 | <div class="layout_row_label"><%= Page.human_attribute_name(:body) %></div> |
| 27 | <div class="layout_row_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> |
