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"> <div class="imgbox window-body">
<img src="img/<%= filenameProfilePic %> " alt=""> <img src="img/<%= filenameProfilePic %> " alt="">
</div> </div>
<% if(summaryText !== '') { %>
<div class="status-bar">
<div class="status-bar-field"><%= summaryText %></div>
</div>
<% } %>
</div> </div>
<div class="window link-window"> <div class="window link-window">
<div class="title-bar"> <div class="title-bar">

View file

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