Skip to content
Snippets Groups Projects
Commit 2b5aefde authored by Robert Goldmann's avatar Robert Goldmann
Browse files

#419 - show account image if available

parent 86f3da0e
Branches
Tags
No related merge requests found
......@@ -43,3 +43,8 @@
#account-icon-preview:hover {
cursor: pointer;
}
.account-select-icon {
height: 34px;
width: 34px;
}
......@@ -100,13 +100,13 @@
</#macro>
<#macro accountIcon account classes="" datasetValue="">
<div class="category-circle ${classes} category-square" style="background-color: #FF0000" <#if datasetValue?has_content>data-value="${account.getID()}"</#if>>
<span style="color: #FFFFFF}">
<#-- <#if account.getIcon()??>-->
<#-- <i class="${category.getIcon()}"></i>-->
<#-- <#else>-->
<div class="category-circle ${classes} category-square <#if account.getIcon()?? == false>background-blue</#if>" <#if datasetValue?has_content>data-value="${account.getID()}"</#if>>
<#if account.getIcon()??>
<img src="${account.getIcon().getBase64EncodedImage()}" class="account-select-icon"/>
<#else>
<span class="text-white">
${account.getName()?capitalize[0]}
<#-- </#if>-->
</span>
</#if>
</div>
</#macro>
\ No newline at end of file
......@@ -15,6 +15,7 @@
<@header.style "categories"/>
<@header.style "collapsible"/>
<@header.style "categorySelect"/>
<@header.style "accounts"/>
<#import "/spring.ftl" as s>
</head>
<@header.body>
......
......@@ -14,6 +14,7 @@
<@header.style "datepicker"/>
<@header.style "categories"/>
<@header.style "categorySelect"/>
<@header.style "accounts"/>
<#import "/spring.ftl" as s>
</head>
<@header.body>
......
......@@ -15,6 +15,7 @@
<@header.style "categories"/>
<@header.style "collapsible"/>
<@header.style "categorySelect"/>
<@header.style "accounts"/>
<#import "/spring.ftl" as s>
</head>
<@header.body>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment