Browse files

fix typo in snippet; use snippet in base.html

  • Loading branch information...
1 parent 7a1c8f2 commit df705d9e41b3ac2bc878533c0731e4a4c246c431 @atdt atdt committed Dec 2, 2011
Showing with 3 additions and 2 deletions.
  1. +1 −1 snippets/models.py
  2. +2 −1 templates/base.html
View
2 snippets/models.py
@@ -23,7 +23,7 @@ def cache_key(self):
@classmethod
def get_cache_key(cls, slug):
digest = hashlib.md5(slug).hexdigest()
- return
+ return cls.key_format.format(digest=digest)
@classmethod
def get(cls, slug):
View
3 templates/base.html
@@ -1,5 +1,6 @@
<!DOCTYPE HTML>
{% load gravatar %}
+{% load snippet %}
{% load inbox %}
<!--[if lt IE 7 ]> <html class="ie ie6 no-js" lang="en"> <![endif]-->
@@ -96,7 +97,7 @@ <h1 class="left mrn mtx">
<div class="grid_16 subhead">
<div class="grid_12 suffix_1 alpha">
- <h2 class="inline gray-text">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris at felis mi.</h2>
+ <h2 class="inline gray-text">{% snippet 'calltoaction' %}</h2>
<h3 class="inline mll"><a href="@TODO">Learn more</a></h3>
</div>

0 comments on commit df705d9

Please sign in to comment.