Drop number of followers from tags page
This commit is contained in:
parent
590778502d
commit
3d4bdfb665
4 changed files with 1 additions and 10 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
# Head
|
# Head
|
||||||
|
|
||||||
## Refactor
|
## Refactor
|
||||||
|
* Drop number of followers from tags page [#4717](https://github.com/diaspora/diaspora/issues/4717)
|
||||||
|
|
||||||
## Bug fixes
|
## Bug fixes
|
||||||
* Improve time agos by updating the plugin [#4280](https://github.com/diaspora/diaspora/issues/4280)
|
* Improve time agos by updating the plugin [#4280](https://github.com/diaspora/diaspora/issues/4280)
|
||||||
|
|
|
||||||
|
|
@ -2,10 +2,6 @@ class ActsAsTaggableOn::Tag
|
||||||
|
|
||||||
self.include_root_in_json = false
|
self.include_root_in_json = false
|
||||||
|
|
||||||
def followed_count
|
|
||||||
@followed_count ||= TagFollowing.where(:tag_id => self.id).count
|
|
||||||
end
|
|
||||||
|
|
||||||
def self.tag_text_regexp
|
def self.tag_text_regexp
|
||||||
@@tag_text_regexp ||= "[[:alnum:]]_-"
|
@@tag_text_regexp ||= "[[:alnum:]]_-"
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -29,8 +29,6 @@
|
||||||
#author_info
|
#author_info
|
||||||
%h2
|
%h2
|
||||||
= @stream.display_tag_name
|
= @stream.display_tag_name
|
||||||
%small
|
|
||||||
= t('.followed_by_people', count: @stream.tag_follow_count)
|
|
||||||
|
|
||||||
- if current_user
|
- if current_user
|
||||||
= render 'shared/publisher', :selected_aspects => @stream.aspect_ids, :aspect_ids => @stream.aspect_ids, :for_all_aspects => true, :aspect => @stream.aspect
|
= render 'shared/publisher', :selected_aspects => @stream.aspect_ids, :aspect_ids => @stream.aspect_ids, :for_all_aspects => true, :aspect => @stream.aspect
|
||||||
|
|
|
||||||
|
|
@ -16,10 +16,6 @@ class Stream::Tag < Stream::Base
|
||||||
@tag ||= ActsAsTaggableOn::Tag.named(tag_name).first
|
@tag ||= ActsAsTaggableOn::Tag.named(tag_name).first
|
||||||
end
|
end
|
||||||
|
|
||||||
def tag_follow_count
|
|
||||||
@tag_follow_count ||= tag.try(:followed_count).to_i
|
|
||||||
end
|
|
||||||
|
|
||||||
def display_tag_name
|
def display_tag_name
|
||||||
@display_tag_name ||= "##{tag_name}"
|
@display_tag_name ||= "##{tag_name}"
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue