diff options
-rw-r--r-- | pastepy.py | 1 | ||||
-rw-r--r-- | templates/paste.tmpl | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -37,6 +37,7 @@ class Paste(object): 'title': settings.pastebin_name, 'header': settings.pastebin_name, 'lexers': self.lexers, + 'default': settings.default, 'nick': c['nick'].value if 'nick' in c else 'Anonymous', 'remembered': 'nick' in c, }))] diff --git a/templates/paste.tmpl b/templates/paste.tmpl index 195d463..941e624 100644 --- a/templates/paste.tmpl +++ b/templates/paste.tmpl @@ -10,7 +10,7 @@ #for cat, ls in $lexers <optgroup label="$cat"> #for k, v in $ls - <option value="$v">$k</option> + <option value="$v"#if $k == $default# selected="selected"#end if#>$k</option> #end for </optgroup> #end for |