add tag correction support
This commit is contained in:
8
app/views/tag_corrections/new.html.erb
Normal file
8
app/views/tag_corrections/new.html.erb
Normal file
@@ -0,0 +1,8 @@
|
||||
<h1>Fix Tag</h1>
|
||||
|
||||
<p>You can fix the post count for this tag. It will update it from <%= @tag.post_count %> to <%= @tag.real_post_count %>.</p>
|
||||
|
||||
<%= form_tag(tag_correction_path(:tag_id => @tag.id)) do %>
|
||||
<%= submit_tag "Fix" %>
|
||||
<%= submit_tag "Cancel" %>
|
||||
<% end %>
|
||||
@@ -7,6 +7,7 @@
|
||||
<% if @tag %>
|
||||
<li>|</li>
|
||||
<li><%= link_to "Edit", edit_tag_path(@tag) %></li>
|
||||
<li><%= link_to "Fix", new_tag_correction_path(:tag_id => @tag.id) %></li>
|
||||
<% end %>
|
||||
</menu>
|
||||
<% end %>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
<%= simple_form_for(@tag) do |f| %>
|
||||
<%= f.input :category, :collection => Danbooru.config.canonical_tag_category_mapping.to_a, :include_blank => false %>
|
||||
<%= f.button :submit %>
|
||||
<%= f.button :submit, "Submit" %>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -16,7 +16,10 @@
|
||||
<%= link_to("?", wiki_pages_path(:title => tag.name)) %>
|
||||
<%= link_to(tag.name, posts_path(:tags => tag.name)) %>
|
||||
</td>
|
||||
<td><%= link_to "edit", edit_tag_path(tag) %></td>
|
||||
<td>
|
||||
<%= link_to "edit", edit_tag_path(tag) %>
|
||||
| <%= link_to "fix", new_tag_correction_path(:tag_id => tag.id) %>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
|
||||
Reference in New Issue
Block a user