summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2019-03-15 18:54:47 +0100
committerJon Bergli Heier <snakebite@jvnv.net>2019-03-15 18:54:47 +0100
commit15277bf5ce9bb950eefb6918ca0df5e62d7db32c (patch)
treebc2d0730cf93f3b0ec8f5c476437b34ba4ff5225
parenteb99f10e9d507a15f84a5549e1999284091201c2 (diff)
Default nick to Anonymous
-rw-r--r--pastepy/templates/paste.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/pastepy/templates/paste.html b/pastepy/templates/paste.html
index 9a22e76..ddb321e 100644
--- a/pastepy/templates/paste.html
+++ b/pastepy/templates/paste.html
@@ -19,7 +19,7 @@
<label for="remember_syntax">Remember syntax</label>
</li>
<li>
- <input type="text" name="nick" id="nick" value="{{ session.nick }}">
+ <input type="text" name="nick" id="nick" value="{{ session.nick or 'Anonymous' }}">
<input type="checkbox" name="remember_me" id="remember_me"{% if session.nick %} checked{% endif %}>
<label for="remember_me">Remember me</label>
</li>