aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDennis Eriksen <dennis.se@gmail.com>2013-05-07 10:24:22 +0200
committerDennis Eriksen <dennis.se@gmail.com>2013-05-07 10:24:22 +0200
commit24a1d651552eba3bc45df1609ef2f330af0821ff (patch)
tree93d6a85f42e30aedda4e176dfb78bbb3f0efa722
parentadding post-page for projects (diff)
downloadDivid-24a1d651552eba3bc45df1609ef2f330af0821ff.tar.gz
added some buttons
-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 -->