Add icon to "Open in full view" link on PDF preview (#22483).

git-svn-id: https://svn.redmine.org/redmine/trunk@24588 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2026-04-16 12:20:18 +00:00
parent 24733d885f
commit b0a203faa9
3 changed files with 9 additions and 1 deletions

View File

@@ -335,6 +335,12 @@
<path d="M11 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0"/>
<path d="M8 11v-4a4 4 0 1 1 8 0v4"/>
</symbol>
<symbol viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" id="icon--maximize">
<path d="M4 8v-2a2 2 0 0 1 2 -2h2"/>
<path d="M4 16v2a2 2 0 0 0 2 2h2"/>
<path d="M16 4h2a2 2 0 0 1 2 2v2"/>
<path d="M16 20h2a2 2 0 0 0 2 -2v-2"/>
</symbol>
<symbol viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" id="icon--message">
<path d="M8 9h8"/>
<path d="M8 13h6"/>

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 34 KiB

View File

@@ -1,5 +1,5 @@
<p class="pdf-full-view-link">
<%= link_to l(:label_open_in_full_view, :default => l(:button_download)), path %>
<%= link_to sprite_icon('maximize', l(:label_open_in_full_view)), path, :class => 'icon icon-maximize' %>
</p>
<div class="filecontent pdf">
<object data="<%= path %>" type="application/pdf">

View File

@@ -256,3 +256,5 @@
svg: file-type-xls
- name: file-type-ppt
svg: file-type-ppt
- name: maximize
svg: maximize