From 5c2b59da2298a3fc390de11405232eddc895681f Mon Sep 17 00:00:00 2001 From: Maxwell Salzberg Date: Tue, 8 Nov 2011 11:47:17 -0800 Subject: [PATCH] add a link to the tag show page from the search page --- app/helpers/tags_helper.rb | 3 +++ app/views/people/index.html.haml | 2 ++ config/locales/diaspora/en.yml | 1 + 3 files changed, 6 insertions(+) diff --git a/app/helpers/tags_helper.rb b/app/helpers/tags_helper.rb index cb17bf58e..b34be106a 100644 --- a/app/helpers/tags_helper.rb +++ b/app/helpers/tags_helper.rb @@ -3,4 +3,7 @@ # the COPYRIGHT file. module TagsHelper + def tag_page_link(tag) + link_to("##{tag}", tag_path(:name => tag)) + end end diff --git a/app/views/people/index.html.haml b/app/views/people/index.html.haml index 52a71bd70..2d4985c6f 100644 --- a/app/views/people/index.html.haml +++ b/app/views/people/index.html.haml @@ -18,6 +18,8 @@ =t('.results_for') %span.term = params[:q] + %small + = t('.looking_for', :tag_link => tag_page_link(params[:q])).html_safe .span-15.append-1 #people_stream.stream diff --git a/config/locales/diaspora/en.yml b/config/locales/diaspora/en.yml index f47463bf8..4cc0d3758 100644 --- a/config/locales/diaspora/en.yml +++ b/config/locales/diaspora/en.yml @@ -532,6 +532,7 @@ en: no_results: "Hey! You need to search for something." couldnt_find_them_send_invite: "Couldn't find them? Send an invite!" no_one_found: "...and no one was found." + looking_for: "Looking for posts tagged %{tag_link}?" webfinger: fail: "Sorry, we couldn't find %{handle}." show: