addition of new dashboard
This commit is contained in:
26
backend/http/views/include/agreements.ejs
Normal file
26
backend/http/views/include/agreements.ejs
Normal file
@@ -0,0 +1,26 @@
|
||||
<% const cardStyle=`"background: linear-gradient(333deg, ${app.background.color1} 0%, ${app.background.color2} 100%);
|
||||
margin-bottom: 30px;"`; const userApp=user.apps.find(ua=> app.type === 'core');
|
||||
const buttonStyle = `"padding: 8px 10px 8px 10px; border-radius: 16px !important; background-color:
|
||||
${app.button.color} !important; border: none !important;"`
|
||||
%>
|
||||
|
||||
<div class="mdc-card mdc-theme--dark" style=<%- cardStyle %>>
|
||||
|
||||
<div style="display: flex; align-items: center;">
|
||||
<div style="width: 30px">
|
||||
<%- app.logo %>
|
||||
</div>
|
||||
<h2 style="margin-left: 10px; padding-bottom: 10px;">
|
||||
Available Agreements
|
||||
</h2>
|
||||
</div>
|
||||
|
||||
<div style="display: flex; align-items: center;">
|
||||
<ul style="margin-top: 0px">
|
||||
<% for (const agreement of agreements) { %>
|
||||
<li style="padding-bottom: 1em"><a target="_new" class="agreement-link" href="/agreements/<%- agreement.hash %>"><%- agreement.title %></a></li>
|
||||
<% } %>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
Reference in New Issue
Block a user