Commit 9ff13024 by farax

еее

parent 8bc46ac5
...@@ -24,6 +24,11 @@ ...@@ -24,6 +24,11 @@
if (!leftList.contains(tempKeyValuePDF)) { if (!leftList.contains(tempKeyValuePDF)) {
rightList.add(tempKeyValuePDF); rightList.add(tempKeyValuePDF);
} }
KeyValuePair tempKeyValueXLS = new KeyValuePair("application/vnd.ms-excel","application/vnd.ms-excel");
if (!leftList.contains(tempKeyValueXLS)) {
rightList.add(tempKeyValueXLS);
}
long rootFolderId = assetPublisherDisplayContext.getRootFolder(); long rootFolderId = assetPublisherDisplayContext.getRootFolder();
String rootFolderName = StringPool.BLANK; String rootFolderName = StringPool.BLANK;
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
<li class="lfr-asset-item col-md-4"> <li class="lfr-asset-item col-md-4">
<div class="taglib-vertical-card entry-display-style"> <div class="taglib-vertical-card entry-display-style">
<div class="editIcon"> <div class="editIcon">
<span><@getEditIcon /></span> <span><@getEditIcon /></span><span><@getMoveToTrashIcon /></span>
</div> </div>
<div class="card"> <div class="card">
<a href="${href}"> <a href="${href}">
...@@ -52,4 +52,14 @@ ...@@ -52,4 +52,14 @@
/> />
</#if> </#if>
</#if> </#if>
</#macro>
<#macro getMoveToTrashIcon>
<#if assetRenderer.hasEditPermission(themeDisplay.getPermissionChecker())>
<#assign AssetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService")>
<@liferay_ui["icon"]
iconCssClass="icon-trash"
message="Trash"
url="javascript:alert('Еще не реализовано удаление');"
/>
</#if>
</#macro> </#macro>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment