mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-26 01:35:34 +08:00
new icon changes
This commit is contained in:
parent
6d4b2c9a9e
commit
73e35994d5
4 changed files with 4 additions and 8 deletions
|
@ -5,7 +5,7 @@ $.fn.dataTable.render.RepositoryAssetValue = function(data) {
|
|||
if (asset.id) {
|
||||
return `
|
||||
<div class="asset-value-cell">
|
||||
${asset.icon_html}
|
||||
<i class="sn-icon sn-icon-${asset.icon_html}"></i>
|
||||
<div>
|
||||
<a class="file-preview-link"
|
||||
id="modal_link${asset.id}"
|
||||
|
|
|
@ -85,10 +85,6 @@
|
|||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
#wopi_file_edit_button {
|
||||
margin-left: -8px;
|
||||
}
|
||||
}
|
||||
|
||||
.add-file-modal {
|
||||
|
|
|
@ -12,7 +12,7 @@ module RepositoryDatatable
|
|||
url: rails_blob_path(asset.file, disposition: 'attachment'),
|
||||
preview_url: asset_file_preview_path(asset),
|
||||
file_name: escape_input(asset.file_name),
|
||||
icon_html: FileIconsHelper.file_extension_icon_html(asset)
|
||||
icon_html: FileIconsHelper.sn_icon_for(asset)
|
||||
}
|
||||
rescue StandardError => e
|
||||
Rails.logger.error e.message
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
id: 'wopi_file_edit_button',
|
||||
class: 'btn btn-light',
|
||||
target: '_blank' do %>
|
||||
<%= file_application_icon(asset) %>
|
||||
<i class="sn-icon sn-icon-<%= sn_icon_for(asset) %>"></i>
|
||||
<%= wopi_button_text(asset, 'edit') %>
|
||||
<% end %>
|
||||
<% else %>
|
||||
|
@ -13,7 +13,7 @@
|
|||
target: '_blank',
|
||||
title: title,
|
||||
disabled: true do %>
|
||||
<%= file_application_icon(asset) %>
|
||||
<i class="sn-icon sn-icon-<%= sn_icon_for(asset) %>"></i>
|
||||
<%= wopi_button_text(asset, 'edit') %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
|
Loading…
Reference in a new issue