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
|
||||
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
|
||||
|
|
|
|||
|
|
@ -18,9 +18,12 @@
|
|||
=t('.results_for')
|
||||
%span.term
|
||||
= params[:q]
|
||||
%small
|
||||
= t('.looking_for', :tag_link => tag_page_link(params[:q])).html_safe
|
||||
|
||||
%h4
|
||||
%small
|
||||
= t('.looking_for', :tag_link => tag_page_link(params[:q])).html_safe
|
||||
.span-15
|
||||
%hr
|
||||
.clearfix
|
||||
.span-15.append-1
|
||||
#people_stream.stream
|
||||
- if @hashes.empty?
|
||||
|
|
|
|||
|
|
@ -888,6 +888,7 @@ en:
|
|||
tags:
|
||||
title: "Posts tagged: %{tags}"
|
||||
contacts_title: "People who dig this tag"
|
||||
tag_prefill_text: "The thing I love about %{tag_name} is... "
|
||||
|
||||
public:
|
||||
title: "Public Activity"
|
||||
|
|
|
|||
|
|
@ -40,9 +40,14 @@ class Stream::Tag < Stream::Base
|
|||
end
|
||||
|
||||
private
|
||||
|
||||
def tag_prefill_text
|
||||
I18n.translate('streams.tags.tag_prefill_text', :tag_name => display_tag_name)
|
||||
end
|
||||
|
||||
# @return [Hash]
|
||||
def publisher_opts
|
||||
{:prefill => "#{display_tag_name} "}
|
||||
{:prefill => "#{tag_prefill_text}", :open => true}
|
||||
end
|
||||
|
||||
def construct_post_query
|
||||
|
|
|
|||
Loading…
Reference in a new issue