diff --git a/app/controllers/tag_aliases_controller.rb b/app/controllers/tag_aliases_controller.rb index 59b69e771..67106a213 100644 --- a/app/controllers/tag_aliases_controller.rb +++ b/app/controllers/tag_aliases_controller.rb @@ -2,6 +2,11 @@ class TagAliasesController < ApplicationController before_filter :admin_only, :only => [:approve, :new, :create] respond_to :html, :xml, :json, :js + def show + @tag_alias = TagAlias.find(params[:id]) + respond_with(@tag_alias) + end + def new @tag_alias = TagAlias.new(params[:tag_alias]) respond_with(@tag_alias) diff --git a/app/controllers/tag_implications_controller.rb b/app/controllers/tag_implications_controller.rb index f738b1c73..e441c040c 100644 --- a/app/controllers/tag_implications_controller.rb +++ b/app/controllers/tag_implications_controller.rb @@ -2,6 +2,11 @@ class TagImplicationsController < ApplicationController before_filter :admin_only, :only => [:new, :create, :approve] respond_to :html, :xml, :json, :js + def show + @tag_implication = TagImplication.find(params[:id]) + respond_with(@tag_implication) + end + def new @tag_implication = TagImplication.new respond_with(@tag_implication) diff --git a/app/views/tag_aliases/index.html.erb b/app/views/tag_aliases/index.html.erb index f64c44fc2..10f98ca82 100644 --- a/app/views/tag_aliases/index.html.erb +++ b/app/views/tag_aliases/index.html.erb @@ -32,8 +32,9 @@ <%= tag_alias.status %> + <%= link_to "Show", tag_alias_path(tag_alias) %> <% if tag_alias.deletable_by?(CurrentUser.user) %> - <%= link_to "Delete", tag_alias_path(tag_alias), :remote => true, :method => :delete, :confirm => "Are you sure you want to delete this alias?" %> + | <%= link_to "Delete", tag_alias_path(tag_alias), :remote => true, :method => :delete, :confirm => "Are you sure you want to delete this alias?" %> <% end %> <% if CurrentUser.is_admin? && tag_alias.is_pending? %> diff --git a/app/views/tag_aliases/show.html.erb b/app/views/tag_aliases/show.html.erb new file mode 100644 index 000000000..ddb9c41aa --- /dev/null +++ b/app/views/tag_aliases/show.html.erb @@ -0,0 +1,20 @@ +

Tag Alias: <%= @tag_alias.antecedent_name %> -> <%= @tag_alias.consequent_name %>

+ + + +<%= render "tag_aliases/secondary_links" %> + +<% content_for(:page_title) do %> + Tag Alias - <%= Danbooru.config.app_name %> +<% end %> diff --git a/app/views/tag_implications/index.html.erb b/app/views/tag_implications/index.html.erb index 68421cfc2..6c018da22 100644 --- a/app/views/tag_implications/index.html.erb +++ b/app/views/tag_implications/index.html.erb @@ -30,8 +30,9 @@ <%= tag_implication.status %> + <%= link_to "Show", tag_implication_path(tag_implication) %> <% if tag_implication.deletable_by?(CurrentUser.user) %> - <%= link_to "Delete", tag_implication_path(tag_implication), :remote => true, :method => :delete, :confirm => "Are you sure you want to delete this implication?" %> + | <%= link_to "Delete", tag_implication_path(tag_implication), :remote => true, :method => :delete, :confirm => "Are you sure you want to delete this implication?" %> <% end %> <% if CurrentUser.user.is_admin? && tag_implication.is_pending? %> | <%= link_to "Approve", approve_tag_implication_path(tag_implication), :remote => true, :method => :post %> diff --git a/app/views/tag_implications/show.html.erb b/app/views/tag_implications/show.html.erb new file mode 100644 index 000000000..c0e730591 --- /dev/null +++ b/app/views/tag_implications/show.html.erb @@ -0,0 +1,20 @@ +

Tag Implication: <%= @tag_implication.antecedent_name %> -> <%= @tag_implication.consequent_name %>

+ + + +<%= render "tag_implications/secondary_links" %> + +<% content_for(:page_title) do %> + Tag Implication - <%= Danbooru.config.app_name %> +<% end %>