Permalink
Browse files

Minor tweaks

  • Loading branch information...
1 parent cd27fae commit 475b13c67825db6667fb969428dae704ec026185 @rcarmo committed Mar 1, 2012
@@ -1,6 +1,6 @@
<div class="entry">
<div class="entry-meta">
- <ul>%(metadata)s</ul>
+ %(metadata)s
</div>
<div class="entry-body">
<div class="entry-title"><h1><a href="%(permalink)s" class="%(linkclass)s" rel="bookmark" title="%(description)s">%(posttitle)s</a></h1></div>
@@ -1,6 +1,6 @@
<div class="entry">
<div class="entry-meta">
- <ul>%(metadata)s</ul>
+ %(metadata)s
<div class="entry-references">%(references)s</div>
<div class="social-references"><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like show_faces="false" layout="button_count" href="%(permalink)s" width="90"></fb:like></div>
</div>
@@ -36,14 +36,21 @@ def renderEntryMetaData(i18n, headers, short = True):
* Updated:
* By:
* Tags:
+
+ TODO: move some of this to a template
"""
fields = ['created','updated','author','tags','references']
- items = ['<li class="meta-%s">$%s</li>' % (x,x) for x in fields]
- format = '<b class="meta-color">%s</b><br><p class="meta-atom">%s</p>'
+ items = ['<span class="meta-%s">$%s</span> ' % (x,x) for x in fields]
+ format = '<span class="meta-field">%s</span><span class="meta-atom">%s</span> '
if short == True:
- created = '<p class="meta-fuzzy"><b>%s</b></p>' % fuzzyTime(i18n, headers['date'])
+ created = '<span class="meta-fuzzy label label-info">%s</span> ' % fuzzyTime(i18n, headers['date'])
+
try:
- tags = '<p class="meta-atom">%s</p>' % headers['tags'].lower()
+ # TODO: recast this as a map. I want to make sure I can debug some Unicode hassles easily for now.
+ tags = [tag.strip() for tag in headers['tags'].lower().split(",")]
+ tags.sort()
+ tags = filter(lambda x: len(x),tags)
+ tags = ' '.join(['<span class="label">%s</span>' % tag for tag in tags])
except:
pass
else:

0 comments on commit 475b13c

Please sign in to comment.