#1961: Add pixiv links to other names

This commit is contained in:
Toks
2014-06-04 19:12:17 -04:00
parent e2255d302d
commit 4716bd7c97

View File

@@ -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