open up tag show publisher, have a cuter message on the page
This commit is contained in:
parent
730d2d9754
commit
8cab4cb2e2
4 changed files with 15 additions and 5 deletions
|
|
@ -4,6 +4,7 @@
|
||||||
|
|
||||||
module TagsHelper
|
module TagsHelper
|
||||||
def tag_page_link(tag)
|
def tag_page_link(tag)
|
||||||
link_to("##{tag}", tag_path(:name => tag))
|
tag_name = ActsAsTaggableOn::Tag.normalize(tag)
|
||||||
|
link_to("##{tag_name}", tag_path(:name => tag_name))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -18,9 +18,12 @@
|
||||||
=t('.results_for')
|
=t('.results_for')
|
||||||
%span.term
|
%span.term
|
||||||
= params[:q]
|
= params[:q]
|
||||||
%small
|
%h4
|
||||||
= t('.looking_for', :tag_link => tag_page_link(params[:q])).html_safe
|
%small
|
||||||
|
= t('.looking_for', :tag_link => tag_page_link(params[:q])).html_safe
|
||||||
|
.span-15
|
||||||
|
%hr
|
||||||
|
.clearfix
|
||||||
.span-15.append-1
|
.span-15.append-1
|
||||||
#people_stream.stream
|
#people_stream.stream
|
||||||
- if @hashes.empty?
|
- if @hashes.empty?
|
||||||
|
|
|
||||||
|
|
@ -888,6 +888,7 @@ en:
|
||||||
tags:
|
tags:
|
||||||
title: "Posts tagged: %{tags}"
|
title: "Posts tagged: %{tags}"
|
||||||
contacts_title: "People who dig this tag"
|
contacts_title: "People who dig this tag"
|
||||||
|
tag_prefill_text: "The thing I love about %{tag_name} is... "
|
||||||
|
|
||||||
public:
|
public:
|
||||||
title: "Public Activity"
|
title: "Public Activity"
|
||||||
|
|
|
||||||
|
|
@ -40,9 +40,14 @@ class Stream::Tag < Stream::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
def tag_prefill_text
|
||||||
|
I18n.translate('streams.tags.tag_prefill_text', :tag_name => display_tag_name)
|
||||||
|
end
|
||||||
|
|
||||||
# @return [Hash]
|
# @return [Hash]
|
||||||
def publisher_opts
|
def publisher_opts
|
||||||
{:prefill => "#{display_tag_name} "}
|
{:prefill => "#{tag_prefill_text}", :open => true}
|
||||||
end
|
end
|
||||||
|
|
||||||
def construct_post_query
|
def construct_post_query
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue