From ce24e7b5eaeb881d2cc7dc994b40fc9c3db84ba2 Mon Sep 17 00:00:00 2001 From: Alex 'AdUser' Z Date: Fri, 4 Sep 2015 11:37:31 +1000 Subject: [PATCH] * chg zerobin paste format selector --- lib/LDV/Zerobin.pm | 4 ++-- templates/zerobin/create.html.ep | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/LDV/Zerobin.pm b/lib/LDV/Zerobin.pm index 7973975..dee86f4 100644 --- a/lib/LDV/Zerobin.pm +++ b/lib/LDV/Zerobin.pm @@ -20,9 +20,9 @@ sub _paste_path { sub create { my ($self) = @_; - my @syntax = ('auto'); + my @syntax = ($self->c(text => ['plaintext', 'markdown'])); my $langs = $self->app->config->{zerobin}->{syntax}; - push @syntax, $self->c('-------' => $langs) + push @syntax, $self->c(code => $langs) if (ref($langs) eq 'ARRAY'); $self->stash({syntax => \@syntax}); diff --git a/templates/zerobin/create.html.ep b/templates/zerobin/create.html.ep index 69dd1de..570a99f 100644 --- a/templates/zerobin/create.html.ep +++ b/templates/zerobin/create.html.ep @@ -19,7 +19,7 @@ <%= select_field 'expire' => \@times %> - <%= tag 'label' => (for => 'syntax') => l('Syntax') %>: + <%= tag 'label' => (for => 'syntax') => l('Format') %>: <%= select_field 'syntax' => $syntax; %>