diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2010-03-20 14:22:16 +0100 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2010-03-20 14:22:16 +0100 |
commit | aa2999e80b7756c72ddded5eaf7e496c7fd33f82 (patch) | |
tree | 5297be56af91fd85c577f2756f79c01220339fbb | |
parent | fb6bceed8c1c32929e1d024b2ce43b945026fe83 (diff) |
Default title to 'Untitled' in the page title.
-rw-r--r-- | pastepy.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -136,7 +136,7 @@ class Paste(object): self.start_response('200 OK', [('Content-Type', 'text/html')]) return [str(templates.view(searchList = { - 'title': '%s – View paste – %s' % (settings.pastebin_name, paste.title), + 'title': '%s – View paste – %s' % (settings.pastebin_name, paste.title or 'Untitled'), 'header': '%s – View paste' % settings.pastebin_name, 'hash': hash, 'date': paste.date.ctime(), |