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