fixes #1092, fixes naming for tag alias|implication requests, includes fix method

This commit is contained in:
albert
2013-03-25 23:07:49 -04:00
parent b9e15e8a1f
commit fdb535ebbd
5 changed files with 31 additions and 8 deletions

View File

@@ -6,12 +6,12 @@
<%= form_tag(tag_alias_request_path, :class => "simple_form") do %>
<div class="input">
<label>Antecedent</label>
<label>From</label>
<%= text_field "tag_alias_request", "antecedent_name" %>
</div>
<div class="input">
<label>Consequent</label>
<label>To</label>
<%= text_field "tag_alias_request", "consequent_name" %>
</div>

View File

@@ -21,8 +21,8 @@
<tbody>
<% @tag_aliases.each do |tag_alias| %>
<tr id="tag-alias-<%= tag_alias.id %>">
<td><%= link_to tag_alias.antecedent_name, posts_path(:tags => tag_alias.antecedent_name) %> <span class="count"><%= tag_alias.antecedent_tag.post_count rescue 0 %></span></td>
<td><%= link_to tag_alias.consequent_name, posts_path(:tags => tag_alias.consequent_name) %> <span class="count"><%= tag_alias.consequent_tag.post_count rescue 0 %></span></td>
<td class="category-<%= tag_alias.antecedent_tag.category %>"><%= link_to tag_alias.antecedent_name, posts_path(:tags => tag_alias.antecedent_name) %> <span class="count"><%= tag_alias.antecedent_tag.post_count rescue 0 %></span></td>
<td class="category-<%= tag_alias.consequent_tag.try(:category) %>"><%= link_to tag_alias.consequent_name, posts_path(:tags => tag_alias.consequent_name) %> <span class="count"><%= tag_alias.consequent_tag.post_count rescue 0 %></span></td>
<td>
<% if tag_alias.forum_topic_id %>
<%= link_to tag_alias.forum_topic_id, forum_topic_path(tag_alias.forum_topic_id) %>

View File

@@ -6,12 +6,12 @@
<%= form_tag(tag_implication_request_path, :class => "simple_form") do %>
<div class="input">
<label>Antecedent</label>
<label>From</label>
<%= text_field "tag_implication_request", "antecedent_name" %>
</div>
<div class="input">
<label>Consequent</label>
<label>To</label>
<%= text_field "tag_implication_request", "consequent_name" %>
</div>