Useless tooltips
This commit is contained in:
parent
430f485998
commit
9fb0ccd832
@ -76,10 +76,7 @@ module DmsfQueriesHelper
|
|||||||
tag = content_tag('span', value, class: 'icon icon-folder')
|
tag = content_tag('span', value, class: 'icon icon-folder')
|
||||||
else
|
else
|
||||||
tag = "<span class=\"dmsf_expander\" onclick=\"dmsfToggle(this, '#{item.id}','#{escape_javascript(expand_folder_dmsf_path)}')\"></span>".html_safe +
|
tag = "<span class=\"dmsf_expander\" onclick=\"dmsfToggle(this, '#{item.id}','#{escape_javascript(expand_folder_dmsf_path)}')\"></span>".html_safe +
|
||||||
link_to(h(value),
|
link_to(h(value), dmsf_folder_path(id: item.project, folder_id: item.id), class: 'icon icon-folder')
|
||||||
dmsf_folder_path(id: item.project, folder_id: item.id),
|
|
||||||
class: 'icon icon-folder',
|
|
||||||
title: h(value))
|
|
||||||
end
|
end
|
||||||
tag + content_tag('div', item.filename, class: 'dmsf-filename', title: l(:title_filename_for_download))
|
tag + content_tag('div', item.filename, class: 'dmsf-filename', title: l(:title_filename_for_download))
|
||||||
when 'folder-link'
|
when 'folder-link'
|
||||||
@ -88,10 +85,7 @@ module DmsfQueriesHelper
|
|||||||
else
|
else
|
||||||
tag = "<span class=\"dmsf_expander\"></span>".html_safe +
|
tag = "<span class=\"dmsf_expander\"></span>".html_safe +
|
||||||
# For links we use revision_id containing dmsf_folder.id in fact
|
# For links we use revision_id containing dmsf_folder.id in fact
|
||||||
link_to(h(value),
|
link_to(h(value), dmsf_folder_path(id: item.project, folder_id: item.revision_id), class: 'icon icon-folder')
|
||||||
dmsf_folder_path(id: item.project, folder_id: item.revision_id),
|
|
||||||
class: 'icon icon-folder',
|
|
||||||
title: h(value))
|
|
||||||
end
|
end
|
||||||
tag + content_tag('div', item.filename, class: 'dmsf-filename', title: l(:label_target_folder))
|
tag + content_tag('div', item.filename, class: 'dmsf-filename', title: l(:label_target_folder))
|
||||||
when 'file', 'file-link'
|
when 'file', 'file-link'
|
||||||
@ -103,12 +97,9 @@ module DmsfQueriesHelper
|
|||||||
content_type = Redmine::MimeType.of(value)
|
content_type = Redmine::MimeType.of(value)
|
||||||
content_type = 'application/octet-stream' if content_type.blank?
|
content_type = 'application/octet-stream' if content_type.blank?
|
||||||
tag = "<span class=\"dmsf_expander\"></span>".html_safe +
|
tag = "<span class=\"dmsf_expander\"></span>".html_safe +
|
||||||
link_to(h(value),
|
link_to(h(value), file_view_url, target: '_blank',
|
||||||
file_view_url,
|
class: "icon icon-file #{DmsfHelper.filetype_css(item.filename)}",
|
||||||
target: '_blank',
|
'data-downloadurl': "#{content_type}:#{h(value)}:#{file_view_url}")
|
||||||
class: "icon icon-file #{DmsfHelper.filetype_css(item.filename)}",
|
|
||||||
title: h(value),
|
|
||||||
'data-downloadurl': "#{content_type}:#{h(value)}:#{file_view_url}")
|
|
||||||
end
|
end
|
||||||
tag + content_tag('div', item.filename, class: 'dmsf-filename', title: l(:title_filename_for_download))
|
tag + content_tag('div', item.filename, class: 'dmsf-filename', title: l(:title_filename_for_download))
|
||||||
when 'url-link'
|
when 'url-link'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user