Commit
6eb1409f12710123f039720d4f539afd8e866b72
Exists in
staging
and in
42 other branches
all_pending_tasks_api, api-articles-period, api_roles, caching-rails4, captcha_serpro_plugin, comments_permissions, content-manager-hostspot, elasticsearch, elasticsearch_api, elasticsearch_categories, elasticsearch_filter, elasticsearch_sort, elasticsearch_to_merge, elasticsearch_view, environment-exposes-api, export-comment-api, export-comment-paragraph, export_data, external_followers, federation-webfinger, federation_followers, federation_followers_backend, federation_oauth_provider, federation_webfinger, fix_event_date_issue, fix_notification_email, fix_string_downcase_and_upcase, follower_permition, json_cookie_serializer, login-captcha, master, master_profile_followers, oauth_external_login, oauth_login, private-scraps, private-scraps-rebase, production, production-vendorized, profile_api_improvements, tasks_keep_filter_params, user_mention, webfinger_server
ActionItem152: listing content tagged with a particular tag
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1265 3f533792-8f58-4932-b0fe-aaf55b0a4547
| @@ -8,7 +8,8 @@ class ProfileController < ApplicationController |
| @@ -8,7 +8,8 @@ class ProfileController < ApplicationController |
8
| end |
8
| end |
9
| |
9
| |
10
| def tag |
10
| def tag |
11
| - @tag = profile.content_tagged_with(params[:id]) |
11
| + @tag = params[:id] |
| |
12
| + @tagged = profile.find_tagged_with(@tag) |
12
| end |
13
| end |
13
| |
14
| |
14
| end |
15
| end |
| @@ -0,0 +1,9 @@ |
| @@ -0,0 +1,9 @@ |
| |
1
| +<h1><%= _('Content tagged with "%s"') % @tag %></h1> |
| |
2
| + |
| |
3
| +<div class='search-tagged-items'> |
| |
4
| + <ul> |
| |
5
| + <% for doc in @tagged %> |
| |
6
| + <li><%= link_to doc.title, doc.url %></li> |
| |
7
| + <% end %> |
| |
8
| + </ul> |
| |
9
| +</div> |