blob: 2583e8bb1dbdca4c0d7eefa98d2495e6da264380 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
<details class="node_action_details">
<summary><%= t("node_actions.show_changes") %></summary>
<table>
<% if (default_items = default_locale_changes(action_entry)).any? %>
<tr>
<th><%= I18n.default_locale.to_s.upcase %></th>
<td>
<%= safe_join(default_items, ", ") %>
<% if action_entry.page && action_entry.node %>
<%= link_to t("node_actions.view_revision"), node_revision_path(action_entry.node, action_entry.page) %>
<% end %>
</td>
</tr>
<% end %>
<% (action_entry.metadata["translation_diff"] || {}).each do |locale, diff| %>
<tr>
<th><%= locale.upcase %></th>
<td>
<%= safe_join(translation_changes(diff), ", ") %>
<% if action_entry.page && action_entry.node %>
<%= link_to t("node_actions.view_revision"), node_revision_path(action_entry.node, action_entry.page, :locale => locale) %>
<% end %>
</td>
</tr>
<% end %>
</table>
</details>
|