Fixup lodgeit templates to use @global vars

Change-Id: I2948ef60f0de0c5d3b6288b915a44eb7c66c52fa
This commit is contained in:
Spencer Krum 2014-03-13 21:04:30 -07:00
parent 5dd095e97a
commit 9e5cad3ae6
2 changed files with 3 additions and 3 deletions

View File

@ -20,9 +20,9 @@
<div id="header">
<h1>
<% if has_variable?("image") then %>
<img src="/static/<%= image %>" style="padding-bottom: 10px; margin-left: 10px;" alt="<%= name.capitalize %> Pastebin" />
<img src="/static/<%= @image %>" style="padding-bottom: 10px; margin-left: 10px;" alt="<%= @name.capitalize %> Pastebin" />
<% else %>
<%= name.capitalize %> Pastebin
<%= @name.capitalize %> Pastebin
<% end %>
</h1>
</div>

View File

@ -7,7 +7,7 @@ from lodgeit import local
from lodgeit.application import make_app
from lodgeit.database import session
dburi = 'drizzle://127.0.0.1:4427/<%= name %>'
dburi = 'drizzle://127.0.0.1:4427/<%= @name %>'
SECRET_KEY = 'no secret key'