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 c66446aa33
commit ed82b3fc13
2 changed files with 3 additions and 3 deletions

View File

@ -20,9 +20,9 @@
<div id="header"> <div id="header">
<h1> <h1>
<% if has_variable?("image") then %> <% 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 %> <% else %>
<%= name.capitalize %> Pastebin <%= @name.capitalize %> Pastebin
<% end %> <% end %>
</h1> </h1>
</div> </div>

View File

@ -7,7 +7,7 @@ from lodgeit import local
from lodgeit.application import make_app from lodgeit.application import make_app
from lodgeit.database import session 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' SECRET_KEY = 'no secret key'