From 4716bd7c971d7c94950fe719551395c498e14c90 Mon Sep 17 00:00:00 2001 From: Toks Date: Wed, 4 Jun 2014 19:12:17 -0400 Subject: [PATCH] #1961: Add pixiv links to other names --- app/helpers/wiki_pages_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/wiki_pages_helper.rb b/app/helpers/wiki_pages_helper.rb index 8b1f11674..e86a04770 100644 --- a/app/helpers/wiki_pages_helper.rb +++ b/app/helpers/wiki_pages_helper.rb @@ -49,7 +49,7 @@ module WikiPagesHelper end def wiki_page_other_names_list(wiki_page) - names_html = wiki_page.other_names_array.map{|name| content_tag("span", name, :class => "other-name")} + names_html = wiki_page.other_names_array.map{|name| link_to(name, "http://www.pixiv.net/search.php?s_mode=s_tag_full&word=#{u(name)}", :class => "other-name")} names_html.join(", ").html_safe end end