From 05eaa6f38b21eb2765af9e63371644e05ca72815 Mon Sep 17 00:00:00 2001 From: Toks Date: Thu, 20 Jun 2013 18:38:16 -0400 Subject: [PATCH] tag view improvements --- app/views/tags/edit.html.erb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/views/tags/edit.html.erb b/app/views/tags/edit.html.erb index 6ae686874..ff551404b 100644 --- a/app/views/tags/edit.html.erb +++ b/app/views/tags/edit.html.erb @@ -3,12 +3,14 @@

Tag: <%= @tag.name %>

<%= simple_form_for(@tag) do |f| %> - <% unless @tag.is_locked? %> + <% if @tag.is_locked? %> + This tag is category locked. + <% else %> <%= f.input :category, :collection => Danbooru.config.canonical_tag_category_mapping.to_a, :include_blank => false %> <% end %> <% if CurrentUser.user.is_janitor? %> - <%= f.input :is_locked, :collection => [["No", "false"], ["Yes", "true"]] %> + <%= f.input :is_locked, :collection => [["No", "false"], ["Yes", "true"]], :include_blank => false %> <% end %> <%= f.button :submit, "Submit" %>