Skip to content
This repository was archived by the owner on Sep 9, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
155 changes: 155 additions & 0 deletions email/concept_ideas_created.njk
Original file line number Diff line number Diff line change
@@ -0,0 +1,155 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<?xml encoding="utf-8" ?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>{{SITENAME}}</title>

<style type="text/css">
#outlook a {padding:0;}
.ExternalClass {width:100%;}
.ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div {line-height: 100%;}
table td {border-collapse: collapse; line-height: 1.5em;}
table {border-collapse: collapse; mso-table-lspace:0pt; mso-table-rspace:0pt; }
#backgroundTable {margin:0; padding:0; width:100% !important; line-height: 100% !important;}
p {margin-bottom: 1.5em;}

a {
color: #2b9ad6;
text-deoration: none;
}

h1 {
font-size: 24px;
font-weight: 600;
margin-top: 20px;
margin-bottom: 0;
}

h2 {
font-size: 18px;
font-weight: 600;
margin-top: 13px;
margin-bottom: 20px;
}

h4 {
margin: 0;
margin-top: 20px;
padding: 0;
font-weight: 600;
}

.blue {
color: #164995;
}

.multipleImages {
margin-top: 10px;
}

.list {
margin-top: 13px;
}

.list td {
padding-bottom: 15px;
}

.list .bullet {
margin-top: -3px;
padding-right: 15px;
}

#howDoesItWork {
margin: 20px 0 20px 0;
}

.step {
width: calc(25% - 21px);
display: inline-block;
vertical-align: top;
font-size: 14px;
font-weight: 600;
margin-left: 0;
margin-right: 17px;
margin-right: 17px;
padding: 0;
box-sizing: border-box;
}

.step-header {
padding-top: 20px;
font-size: 13px;
font-weight: 600;
line-height: normal;
}
</style>
</head>
<body style="margin: 0; padding: 0; min-width: 100%;">
<table cellpadding="0" cellspacing="0" border="0" align="center" width="100%" id="backgroundTable" style="background-color: #FFF; color: #000; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px; width:100%;">
<tr>
<td></td>
<td width="560">
{% include 'logo.njk' %}
</td>
<td></td>
</tr>
<tr>
<td></td>
<td>

{% if idea.extraData and idea.extraData.images %}
{% for image in idea.extraData.images %}
<img class="multipleImages" src="{{image}}" width="100%"/><br/>
{% endfor %}
{% endif %}

</td>
<td></td>
</tr>
<tr>
<td></td>
<td width="560">
<h2 class="blue">Bedankt voor uw CONCEPT plan!</h2>
</td>
<td></td>
</tr>
<tr>
<td></td>
<td width="560">

<h4>Beste {{user.fullName | default('indiener')}},</h4>

U heeft een CONCEPT plan geplaats op {{SITENAME}}.<br/>
Uw plan is nog niet definitief ingediend. Vergeet niet om uw concept definitief te maken voor de deadline. U kunt het plan <b><a href={{inzendingURL}}>hier</a></b> bewerken en indienen.<br/>
<br/>

<p style="margin-bottom: 3em; margin-top: 2em;">
Hartelijke groet,<br>
Team {{SITENAME}}
</p>

</td>
<td></td>
</tr>
<tr>
<td></td>
<td style="height: 15px; background-color: #787979;" width="560">
</td>
<td></td>
</tr>
<tr>
<td></td>
<td style=" text-align: center; height: 15px;" width="560">
<h4><a href="{{URL}}" style="color: black; text-decoration: none;">{{HOSTNAME}}</a></h4>
</td>
<td></td>
</tr>
</table>

<br/><br style="display:block; clear: both;"/>

</body>
</html>
157 changes: 157 additions & 0 deletions email/concept_ideas_edited.njk
Original file line number Diff line number Diff line change
@@ -0,0 +1,157 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<?xml encoding="utf-8" ?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>{{SITENAME}}</title>

<style type="text/css">
#outlook a {padding:0;}
.ExternalClass {width:100%;}
.ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div {line-height: 100%;}
table td {border-collapse: collapse; line-height: 1.5em;}
table {border-collapse: collapse; mso-table-lspace:0pt; mso-table-rspace:0pt; }
#backgroundTable {margin:0; padding:0; width:100% !important; line-height: 100% !important;}
p {margin-bottom: 1.5em;}

a {
color: #2b9ad6;
text-deoration: none;
}

h1 {
font-size: 24px;
font-weight: 600;
margin-top: 20px;
margin-bottom: 0;
}

h2 {
font-size: 18px;
font-weight: 600;
margin-top: 13px;
margin-bottom: 20px;
}

h4 {
margin: 0;
margin-top: 20px;
padding: 0;
font-weight: 600;
}

.blue {
color: #164995;
}

.multipleImages {
margin-top: 10px;
}

.list {
margin-top: 13px;
}

.list td {
padding-bottom: 15px;
}

.list .bullet {
margin-top: -3px;
padding-right: 15px;
}

#howDoesItWork {
margin: 20px 0 20px 0;
}

.step {
width: calc(25% - 21px);
display: inline-block;
vertical-align: top;
font-size: 14px;
font-weight: 600;
margin-left: 0;
margin-right: 17px;
margin-right: 17px;
padding: 0;
box-sizing: border-box;
}

.step-header {
padding-top: 20px;
font-size: 13px;
font-weight: 600;
line-height: normal;
}
</style>
</head>
<body style="margin: 0; padding: 0; min-width: 100%;">
<table cellpadding="0" cellspacing="0" border="0" align="center" width="100%" id="backgroundTable" style="background-color: #FFF; color: #000; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px; width:100%;">
<tr>
<td></td>
<td width="560">
{% include 'logo.njk' %}
</td>
<td></td>
</tr>
<tr>
<td></td>
<td>

{% if idea.extraData and idea.extraData.images %}
{% for image in idea.extraData.images %}
<img class="multipleImages" src="{{image}}" width="100%"/><br/>
{% endfor %}
{% endif %}

</td>
<td></td>
</tr>
<tr>
<td></td>
<td width="560">
<h1>{{SITENAME}}</h1>
<h2 class="blue">Uw plan is definitief ingediend.</h2>
</td>
<td></td>
</tr>
<tr>
<td></td>
<td width="560">

<h4>Beste {{user.fullName | default('indiener')}},</h4>

Bedankt voor aanpassen van uw concept naar een definitief plan op {{SITENAME}}. Uw plan is goed ontvangen.<br/>
<br/>

Houd de site van {{HOSTNAME}} in de gaten voor meer informatie over het project. Mocht u nog vragen hebben, stuur dan een e-mail naar {{EMAIL}}.

<p style="margin-bottom: 3em; margin-top: 2em;">
Hartelijke groet,<br>
Team {{SITENAME}}
</p>

</td>
<td></td>
</tr>
<tr>
<td></td>
<td style="height: 15px; background-color: #787979;" width="560">
</td>
<td></td>
</tr>
<tr>
<td></td>
<td style=" text-align: center; height: 15px;" width="560">
<h4><a href="{{URL}}" style="color: black; text-decoration: none;">{{HOSTNAME}}</a></h4>
</td>
<td></td>
</tr>
</table>

<br/><br style="display:block; clear: both;"/>

</body>
</html>
19 changes: 19 additions & 0 deletions migrations/041-add-tag-column-type.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
let db = require('../src/db').sequelize;

module.exports = {
up: function() {
try {
return db.query(`
ALTER TABLE tags ADD type VARCHAR(30) NULL DEFAULT NULL AFTER name;`);
} catch(e) {
return true;
}
}, down: function() {
try {
return db.query(`
ALTER TABLE tags DROP IF EXISTS type;`);
} catch(e) {
return true;
}
}
}
Loading