Fixed bug with summaryText and smalllinks

This commit is contained in:
nikurasu 2023-01-12 16:00:16 +01:00
parent 191fdbcdc7
commit 1b0ae160f5
2 changed files with 12 additions and 5 deletions

View file

@ -11,6 +11,11 @@
<div class="imgbox window-body">
<img src="img/<%= filenameProfilePic %> " alt="">
</div>
<% if(summaryText !== '') { %>
<div class="status-bar">
<div class="status-bar-field"><%= summaryText %></div>
</div>
<% } %>
</div>
<div class="window link-window">
<div class="title-bar">

View file

@ -18,10 +18,12 @@
<% }) %>
</div>
<div class="smallLinkbox">
<% smallLinks.forEach(link => { %>
<a href="<%= link.hyperlink %>">
<i class="fa fa-<%= link.platform.toLowerCase() %>" aria-hidden="true"></i>
</a>
<% }) %>
<% if(smallLinks && smallLinks.length > 0) { %>
<% smallLinks.forEach(link => { %>
<a href="<%= link.hyperlink %>">
<i class="fa fa-<%= link.platform.toLowerCase() %>" aria-hidden="true"></i>
</a>
<% }) %>
<% } %>
</div>
</div>