aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--controllers/system.js2
-rw-r--r--views/project.ejs4
2 files changed, 3 insertions, 3 deletions
diff --git a/controllers/system.js b/controllers/system.js
index ed7958d..0be82d1 100644
--- a/controllers/system.js
+++ b/controllers/system.js
@@ -98,7 +98,7 @@ exports.dashboard = function(req, res) {
exports.project = function(req, res) {
- res.render('project', { title: 'Harepus', loggedin: true });
+ res.render('project', { title: 'Harepus', loggedin: true, req: req });
}
exports.projectParticipants = function(req, res) {
diff --git a/views/project.ejs b/views/project.ejs
index e9978d5..07a0c06 100644
--- a/views/project.ejs
+++ b/views/project.ejs
@@ -35,12 +35,12 @@
Robert Joramo<br />
Dennis Eriksen<br />
Helene Apelort<br />
- <small><a href="/project/fEyMe3/participants">Legg til flere deltakere</a></small>
+ <small><a href="/project/<%= req.params.short %>/participants">Legg til flere deltakere</a></small>
</div>
</div>
<div class="row-fluid">
<div class="span10 offset2">
- <a class="btn btn-large" href="/post">Før utgift</a>
+ <a class="btn btn-large" href="/project/<%= req.params.short %>/post">Før utgift</a>
</div>
</div>
</div><!-- /div.span6 -->