Double link icon

This commit is contained in:
karel.picman@lbcfree.net 2021-04-25 09:16:44 +02:00
parent ff8476a3c5
commit f8279b99da
7 changed files with 12 additions and 7 deletions

View File

@ -137,9 +137,9 @@ module DmsfQueriesHelper
tag + content_tag('div', item.filename, class: 'dmsf-filename', title: l(:title_filename_for_download))
when 'url-link'
if item&.deleted?
tag = content_tag('span', value, class: 'icon icon-link')
tag = content_tag('span', value, class: 'icon dmsf-icon-link')
else
tag = link_to(h(value), item.filename, target: '_blank', class: 'icon icon-link')
tag = link_to(h(value), item.filename, target: '_blank', class: 'icon dmsf-icon-link')
unless filter_any?
tag = "<span class=\"dmsf-expander\"></span>".html_safe + tag
end

View File

@ -33,7 +33,7 @@
<%= link_to l(:label_link_to),
new_dmsf_link_path(project_id: dmsf_file.project.id, dmsf_folder_id: dmsf_file.dmsf_folder&.id,
dmsf_file_id: dmsf_file.id, type: 'link_to'),
title: l(:title_create_link), class: 'icon icon-link' %>
title: l(:title_create_link), class: 'icon dmsf-icon-link' %>
</li>
<% end %>
<li>

View File

@ -32,7 +32,7 @@
<li>
<%= context_menu_link l(:label_link_to),
new_dmsf_link_path(project_id: dmsf_folder.id, dmsf_folder_id: dmsf_folder.id, type: 'link_to'),
class: 'icon icon-link' %>
class: 'icon dmsf-icon-link' %>
</li>
<% end %>
<li>

View File

@ -57,7 +57,7 @@
<%= link_to l(:label_link_from),
new_dmsf_link_path(project_id: project.id, dmsf_folder_id: folder ? folder.id : folder,
type: 'link_from'), title: l(:title_create_link),
class: 'icon icon-link' %>
class: 'icon dmsf-icon-link' %>
<% end %>
<% end %>
<% if trash_enabled %>

View File

@ -34,7 +34,7 @@
<%= link_to l(:label_link_to),
new_dmsf_link_path(project_id: project.id, dmsf_folder_id: file.dmsf_folder ? file.dmsf_folder.id : nil, dmsf_file_id: file.id, type: 'link_to'),
title: l(:title_create_link),
class: 'icon icon-link' %>
class: 'icon dmsf-icon-link' %>
<%= link_to "#{l(:button_copy)}/#{l(:button_move)}", copy_file_path(id: file),
title: l(:title_copy), class: 'icon icon-copy' %>
<%= delete_link(dmsf_file_path(id: file, details: true)) if file_delete_allowed %>

View File

@ -78,6 +78,11 @@ td.dmsf-title a.icon-folder::before {
color: #FFE9A2;
}
.dmsf-icon-link:before {
content: "\F0337" !important;
font-family: "Material Icons";
}
/* +/- icons */
.dmsf-row-control {
width: auto;

View File

@ -137,7 +137,7 @@ div[id*="revision_access_"] {
}
/* Command icons */
.icon-link { background-image: url(../../../images/link.png); }
.dmsf-icon-link { background-image: url(../../../images/link.png); }
.icon-approvalworkflows { background-image: url(../../../images/ticket_go.png); }
/* File types */