summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/views/assets/show.html.erb21
-rw-r--r--config/locales/de.yml2
-rw-r--r--config/locales/en.yml2
-rw-r--r--public/stylesheets/admin.css19
4 files changed, 38 insertions, 6 deletions
diff --git a/app/views/assets/show.html.erb b/app/views/assets/show.html.erb
index f31d34e1..60d63290 100644
--- a/app/views/assets/show.html.erb
+++ b/app/views/assets/show.html.erb
@@ -44,19 +44,28 @@
44 <% else %> 44 <% else %>
45 <%= t(".not_attached") %> 45 <%= t(".not_attached") %>
46 <% end %> 46 <% end %>
47 <%= link_to new_node_path(:asset_id => @asset.id), :class => "action_button" do %> 47 </div>
48 <%= icon("file-plus", library: "tabler", "aria-hidden": true) %> <%= t(".new_page_with_attachment") %> 48
49 <% end %> 49 <div class="layout_row_label"><%= t("assets.form.attach_to_page") %></div>
50 <div class="layout_row_content">
50 <%= form_tag attach_to_node_asset_path(@asset), :class => "asset_attach_form" do %> 51 <%= form_tag attach_to_node_asset_path(@asset), :class => "asset_attach_form" do %>
51 <div class="restore_picker"> 52 <div class="restore_picker">
52 <%= text_field_tag :asset_node_search_term, nil, 53 <%= text_field_tag :asset_node_search_term, nil,
53 :placeholder => t("assets.form.attach_search_placeholder"), :autocomplete => "off" %> 54 :placeholder => t("assets.form.attach_search_placeholder"), :autocomplete => "off" %>
54 <div id="asset_node_search_results" class="search_results" style="display: none"></div> 55 <div id="asset_node_search_results" class="search_results" style="display: none"></div>
55 </div> 56 </div>
56 <%= hidden_field_tag :node_id, nil %>
57 <label><%= check_box_tag :headline, "1" %> <%= t("assets.form.as_headline") %></label> 57 <label><%= check_box_tag :headline, "1" %> <%= t("assets.form.as_headline") %></label>
58 <%= submit_tag t(".attach_button") %> 58 <%= button_tag :type => "submit", :class => "action_button" do %>
59 <span class="field_hint"><%= t("assets.form.attach_hint") %></span> 59 <%= icon("paperclip", library: "tabler", "aria-hidden": true) %> <%= t(".attach_button") %>
60 <% end %>
61 <span class="field_hint"><%= t(".attach_hint") %></span>
62 <% end %>
63 </div>
64
65 <div class="layout_row_label"><%= t(".new_page") %></div>
66 <div class="layout_row_content">
67 <%= link_to new_node_path(:asset_id => @asset.id), :class => "action_button" do %>
68 <%= icon("file-plus", library: "tabler", "aria-hidden": true) %> <%= t(".new_page_with_attachment") %>
60 <% end %> 69 <% end %>
61 </div> 70 </div>
62 71
diff --git a/config/locales/de.yml b/config/locales/de.yml
index e410e519..bc1660f4 100644
--- a/config/locales/de.yml
+++ b/config/locales/de.yml
@@ -703,6 +703,8 @@ de:
703 attached_to: "Angehängt an" 703 attached_to: "Angehängt an"
704 pending_only: "nur in ausstehenden Versionen" 704 pending_only: "nur in ausstehenden Versionen"
705 not_attached: "— an keine Seite angehängt —" 705 not_attached: "— an keine Seite angehängt —"
706 attach_hint: "Hängt dieses Asset an den Entwurf der Seite an; es wird mit dem Entwurf veröffentlicht."
707 new_page: "neue Seite"
706 new_page_with_attachment: "Neue Seite mit diesem Anhang" 708 new_page_with_attachment: "Neue Seite mit diesem Anhang"
707 attach_button: "Anhängen" 709 attach_button: "Anhängen"
708 public_path: "Öffentlicher Pfad" 710 public_path: "Öffentlicher Pfad"
diff --git a/config/locales/en.yml b/config/locales/en.yml
index f8f586b9..58c85f9e 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -672,6 +672,8 @@ en:
672 pending_only: "pending versions only" 672 pending_only: "pending versions only"
673 not_attached: "— not attached to any page —" 673 not_attached: "— not attached to any page —"
674 attach_button: "Attach" 674 attach_button: "Attach"
675 attach_hint: "Attaches this asset to the page's draft, to go live when the draft is published."
676 new_page: "new page"
675 new_page_with_attachment: "New page with this attachment" 677 new_page_with_attachment: "New page with this attachment"
676 public_path: "Public Path" 678 public_path: "Public Path"
677 copy_url: "Copy URL" 679 copy_url: "Copy URL"
diff --git a/public/stylesheets/admin.css b/public/stylesheets/admin.css
index 9d287dc7..7951f667 100644
--- a/public/stylesheets/admin.css
+++ b/public/stylesheets/admin.css
@@ -2366,6 +2366,25 @@ input#menu_item_title {
2366 display: none; 2366 display: none;
2367} 2367}
2368 2368
2369.asset_attach_form .restore_picker {
2370 max-width: 22rem;
2371}
2372
2373.asset_attach_form label {
2374 display: block;
2375 margin: 0.5rem 0;
2376}
2377
2378.asset_attach_form .action_button {
2379 margin-bottom: 0;
2380}
2381
2382.asset_attach_form .action_button + .field_hint {
2383 display: block;
2384 margin-left: 0;
2385 margin-top: 0.5rem;
2386}
2387
2369/* ============================================================ 2388/* ============================================================
2370 User section 2389 User section
2371 ============================================================ */ 2390 ============================================================ */