Browse Source

* chg zerobin paste format selector

master
Alex 'AdUser' Z 9 years ago
parent
commit
ce24e7b5ea
  1. 4
      lib/LDV/Zerobin.pm
  2. 2
      templates/zerobin/create.html.ep

4
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});

2
templates/zerobin/create.html.ep

@ -19,7 +19,7 @@
<%= select_field 'expire' => \@times %>
</span>
<span class="zerobin cblock">
<%= tag 'label' => (for => 'syntax') => l('Syntax') %>:
<%= tag 'label' => (for => 'syntax') => l('Format') %>:
<%= select_field 'syntax' => $syntax; %>
</span>
</div>

Loading…
Cancel
Save