Skip to content

Commit

Permalink
Make correct embed link
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianheine committed Mar 7, 2014
1 parent e5fd5b0 commit da46dd0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions app.js
Expand Up @@ -79,6 +79,7 @@ app.get('/:format?/:mod?', (function () {
req.params.format = req.accepts('xhtml') ? 'svg' : 'html';
}

res.local('embedPath', 'http://piratenkompass.adrianlang.de/' + req.params.format + '/raw');
// Output the stuff
getDisplay(req.params.format).out(piratenkompass.getKompassdata, res,
req.params.mod === 'raw');
Expand Down
4 changes: 2 additions & 2 deletions views/layout.jade
Expand Up @@ -8,8 +8,8 @@ html(lang='de')
h2 Politischer Kompass
!{body}
p
| Verlinken:
a(href="/svg/raw") /svg/raw
| Einbinden:
a(href=embedPath) #{embedPath}

div.aside
h2 Beschreibung
Expand Down

0 comments on commit da46dd0

Please sign in to comment.