Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BudgetMaster
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
PlayWallDesktop wird heute 10 Jahre alt!
Show more breadcrumbs
Robert Goldmann
BudgetMaster
Commits
9768935d
Commit
9768935d
authored
Jan 23, 2022
by
Robert Goldmann
Browse files
Options
Downloads
Patches
Plain Diff
#652 - show border on new account
parent
78dd4375
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/resources/templates/accounts/newAccount.ftl
+5
-4
5 additions, 4 deletions
src/main/resources/templates/accounts/newAccount.ftl
src/main/resources/templates/helpers/iconSelect.ftl
+2
-2
2 additions, 2 deletions
src/main/resources/templates/helpers/iconSelect.ftl
with
7 additions
and
6 deletions
src/main/resources/templates/accounts/newAccount.ftl
+
5
−
4
View file @
9768935d
...
@@ -48,13 +48,14 @@
...
@@ -48,13 +48,14 @@
</div>
</div>
<#-- icon -->
<#-- icon -->
<#if account.getIconReference()?? && account.getIconReference().is
Fallback
Icon()>
<#if account.getIconReference()?? &&
(
account.getIconReference().is
ImageIcon() || account.getIconReference().isBuiltin
Icon()
)
>
<#assign
b
ackgroundClasses='category-square
account-square-border
'/>
<#assign
initialB
ackgroundClasses='category-square'/>
<#else>
<#else>
<#assign
b
ackgroundClasses='category-square'/>
<#assign
initialB
ackgroundClasses='category-square
account-square-border
'/>
</#if>
</#if>
<#assign backgroundClasses='category-square account-square-border'/>
<@iconSelectMacros.iconSelect id="account-icon" item=account showBackground=false backgroundClasses=backgroundClasses/>
<@iconSelectMacros.iconSelect id="account-icon" item=account showBackground=false
initialBackgroundClasses=initialBackgroundClasses
backgroundClasses=backgroundClasses/>
<#-- font color -->
<#-- font color -->
<@fontColorPickerMacros.fontColorPicker account/>
<@fontColorPickerMacros.fontColorPicker account/>
...
...
This diff is collapsed.
Click to expand it.
src/main/resources/templates/helpers/iconSelect.ftl
+
2
−
2
View file @
9768935d
<#
import
"/spring.ftl" as s>
<#
import
"/spring.ftl" as s>
<#
import
"../helpers/header.ftl" as header>
<#
import
"../helpers/header.ftl" as header>
<#
macro
iconSelect id item showBackground=true backgroundClasses=''>
<#
macro
iconSelect id item showBackground=true
initialBackgroundClasses=''
backgroundClasses=''>
<div class="row">
<div class="row">
<div class="input-field col s12 m12 l8 offset-l2">
<div class="input-field col s12 m12 l8 offset-l2">
<i class="fas fa-icons prefix"></i>
<i class="fas fa-icons prefix"></i>
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
<div class="item-icon-preview-container">
<div class="item-icon-preview-container">
<a id="item-icon-preview" style="color: <#if item.getFontColor()??>$
{
item
.getFontColor
()}
</#if>">
<a id="item-icon-preview" style="color: <#if item.getFontColor()??>$
{
item
.getFontColor
()}
</#if>">
<script>iconSelectAdditionalBackgroundClasses = "$
{
backgroundClasses
}
";</script>
<script>iconSelectAdditionalBackgroundClasses = "$
{
backgroundClasses
}
";</script>
<div id="item-icon-preview-background" class="category-circle category-circle-preview <#if settings.getShowCategoriesAsCircles()?? && settings.getShowCategoriesAsCircles() == false>category-square</#if> $
{
b
ackgroundClasses
}
" style="background-color: <#if showBackground>$
{
item
.getColor
()}
</#if>">
<div id="item-icon-preview-background" class="category-circle category-circle-preview <#if settings.getShowCategoriesAsCircles()?? && settings.getShowCategoriesAsCircles() == false>category-square</#if> $
{
initialB
ackgroundClasses
}
" style="background-color: <#if showBackground>$
{
item
.getColor
()}
</#if>">
<i id="builtin-icon-preview-icon" class="<#if hasBuiltinIcon>$
{
item
.getIconReference
()
.getBuiltinIdentifier
()}
<#else>hidden</#if>"></i>
<i id="builtin-icon-preview-icon" class="<#if hasBuiltinIcon>$
{
item
.getIconReference
()
.getBuiltinIdentifier
()}
<#else>hidden</#if>"></i>
<img id="item-icon-preview-icon" src="<#if hasImageIcon><@s.url "/media/getImageByIconID/" + item.getIconReference().getID()/></#if>" class=" item-icon-preview category-icon <#if hasImageIcon == false>hidden</#if>"/>
<img id="item-icon-preview-icon" src="<#if hasImageIcon><@s.url "/media/getImageByIconID/" + item.getIconReference().getID()/></#if>" class=" item-icon-preview category-icon <#if hasImageIcon == false>hidden</#if>"/>
<span id="item-icon-fallback-name" class="<#if hasBuiltinIcon || hasImageIcon>hidden</#if>"><#if item.getName()?? && item.getName()?length gt 0>$
{
item
.getName
()
?
capitalize
[
0
]}
</#if></span>
<span id="item-icon-fallback-name" class="<#if hasBuiltinIcon || hasImageIcon>hidden</#if>"><#if item.getName()?? && item.getName()?length gt 0>$
{
item
.getName
()
?
capitalize
[
0
]}
</#if></span>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment