diff --git a/app/views/aspects/index.html.haml b/app/views/aspects/index.html.haml index 3d5ee3b2c..93301e84e 100644 --- a/app/views/aspects/index.html.haml +++ b/app/views/aspects/index.html.haml @@ -16,20 +16,7 @@ = render 'aspects/aspect_listings' .section - %ul.left_nav - %li - %div.root_element - = t('aspects.index.tags_following') - - %ul.sub_nav - - if tags.size > 0 - - for tg in tags - %li - = link_to "##{tg.name}", tag_path(:name => tg.name), :class => "tag_selector" - - else - %li - %span.new_aspect - = t('aspects.index.no_tags') + = render 'tags/followed_tags_listings' .span-13.append-1 #aspect_stream_container.stream_container diff --git a/app/views/tags/_followed_tags_listings.haml b/app/views/tags/_followed_tags_listings.haml new file mode 100644 index 000000000..ec5c2a5d6 --- /dev/null +++ b/app/views/tags/_followed_tags_listings.haml @@ -0,0 +1,18 @@ +-# Copyright (c) 2011, Diaspora Inc. This file is +-# licensed under the Affero General Public License version 3 or later. See +-# the COPYRIGHT file. + +%ul.left_nav + %li + %div.root_element + = t('aspects.index.tags_following') + + %ul.sub_nav + - if current_user.followed_tags.size > 0 + - for tg in current_user.followed_tags + %li + =link_to "##{tg.name}", tag_path(:name => tg.name), :class => "tag_selector" + - else + %li + %span.new_aspect + = t('aspects.index.no_tags')