This is an automated email from the ASF dual-hosted git repository.
dill0wn pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/allura.git
The following commit(s) were added to refs/heads/master by this push:
new 4c19b27 8417 Added nofollow to generated links for RSS and Atom feeds
4c19b27 is described below
commit 4c19b27188caa3d04a110987cbc97bbde5f00c01
Author: Guillermo Cruz <[email protected]>
AuthorDate: Wed Mar 2 13:28:07 2022 -0700
8417 Added nofollow to generated links for RSS and Atom feeds
---
Allura/allura/ext/personal_dashboard/templates/dashboard_index.html | 2 +-
Allura/allura/ext/user_profile/templates/send_message.html | 2 +-
Allura/allura/ext/user_profile/templates/user_index.html | 2 +-
Allura/allura/templates/discussion/index.html | 2 +-
Allura/allura/templates/repo/tree.html | 2 +-
ForgeActivity/forgeactivity/templates/index.html | 2 +-
ForgeActivity/forgeactivity/templates/widgets/profile_section.html | 2 +-
ForgeBlog/forgeblog/templates/blog/index.html | 2 +-
ForgeBlog/forgeblog/templates/blog/post.html | 2 +-
ForgeDiscussion/forgediscussion/templates/discussionforums/index.html | 2 +-
ForgeDiscussion/forgediscussion/templates/discussionforums/thread.html | 2 +-
ForgeTracker/forgetracker/templates/tracker/index.html | 2 +-
ForgeTracker/forgetracker/templates/tracker/search.html | 2 +-
ForgeTracker/forgetracker/templates/tracker/ticket.html | 2 +-
ForgeWiki/forgewiki/templates/wiki/page_view.html | 2 +-
15 files changed, 15 insertions(+), 15 deletions(-)
diff --git
a/Allura/allura/ext/personal_dashboard/templates/dashboard_index.html
b/Allura/allura/ext/personal_dashboard/templates/dashboard_index.html
index 71ceba4..86919db 100644
--- a/Allura/allura/ext/personal_dashboard/templates/dashboard_index.html
+++ b/Allura/allura/ext/personal_dashboard/templates/dashboard_index.html
@@ -29,7 +29,7 @@
{% endblock %}
{% block actions %}
- <a href="{{c.app.url}}feed.rss" title="Follow"><b
data-icon="{{g.icons['feed'].char}}" class="ico
{{g.icons['feed'].css}}"></b></a>
+ <a href="{{c.app.url}}feed.rss" title="Follow" rel="nofollow"><b
data-icon="{{g.icons['feed'].char}}" class="ico
{{g.icons['feed'].css}}"></b></a>
{% endblock %}
{% block nav_menu %}
diff --git a/Allura/allura/ext/user_profile/templates/send_message.html
b/Allura/allura/ext/user_profile/templates/send_message.html
index 6745906..c8173cb 100644
--- a/Allura/allura/ext/user_profile/templates/send_message.html
+++ b/Allura/allura/ext/user_profile/templates/send_message.html
@@ -28,7 +28,7 @@
<link rel="alternate" type="application/atom+xml" title="Atom"
href="feed.atom">
{% endblock %}
{% block actions %}
- {{ g.icons['feed'].render(href=c.app.url + 'feed.rss', title='Follow') }}
+ {{ g.icons['feed'].render(href=c.app.url + 'feed.rss', title='Follow',
rel='nofollow') }}
{% endblock %}
{% block content %}
diff --git a/Allura/allura/ext/user_profile/templates/user_index.html
b/Allura/allura/ext/user_profile/templates/user_index.html
index eeda770..6d9b238 100644
--- a/Allura/allura/ext/user_profile/templates/user_index.html
+++ b/Allura/allura/ext/user_profile/templates/user_index.html
@@ -32,7 +32,7 @@
{% endblock %}
{% block actions %}
- {{ g.icons['feed'].render(href=c.app.url + 'feed.rss', title='Follow') }}
+ {{ g.icons['feed'].render(href=c.app.url + 'feed.rss', title='Follow',
rel='nofollow') }}
{% endblock %}
{% block nav_menu %}
diff --git a/Allura/allura/templates/discussion/index.html
b/Allura/allura/templates/discussion/index.html
index 1b840af..582f20e 100644
--- a/Allura/allura/templates/discussion/index.html
+++ b/Allura/allura/templates/discussion/index.html
@@ -29,7 +29,7 @@
title='Send Email to Create a New Topic',
href=h.really_unicode(discussion.email_link(subject=None))) }}
{% endif %}
- {{ g.icons['feed'].render(href='feed.rss') }}
+ {{ g.icons['feed'].render(href='feed.rss',rel='nofollow') }}
{% endblock %}
{% block edit_box %}
diff --git a/Allura/allura/templates/repo/tree.html
b/Allura/allura/templates/repo/tree.html
index f9a8f5d..391314c 100644
--- a/Allura/allura/templates/repo/tree.html
+++ b/Allura/allura/templates/repo/tree.html
@@ -68,7 +68,7 @@ form.tarball button:hover {
{% if c.user and c.user != c.user.anonymous() %}
{{c.subscribe_form.display(value=tool_subscribed, action='subscribe',
style='icon')}}
{% endif %}
-{{ g.icons['feed'].render(href='{}feed/'.format(c.app.url)) }}
+{{ g.icons['feed'].render(href='{}feed/'.format(c.app.url), rel='nofollow') }}
{% endblock %}
{% block content %}
diff --git a/ForgeActivity/forgeactivity/templates/index.html
b/ForgeActivity/forgeactivity/templates/index.html
index f8d572f..f9cee64 100644
--- a/ForgeActivity/forgeactivity/templates/index.html
+++ b/ForgeActivity/forgeactivity/templates/index.html
@@ -43,7 +43,7 @@
{% endblock %}
{% block actions %}
- {{ g.icons['feed'].render(href='feed.rss', title='RSS') }}
+ {{ g.icons['feed'].render(href='feed.rss', title='RSS', rel='nofollow') }}
{% if c.user and c.user != c.user.anonymous() and followee != c.user %}
{{c.follow_toggle.display(following=following)}}
{% endif %}
diff --git a/ForgeActivity/forgeactivity/templates/widgets/profile_section.html
b/ForgeActivity/forgeactivity/templates/widgets/profile_section.html
index 37a19a9..02d8248 100644
--- a/ForgeActivity/forgeactivity/templates/widgets/profile_section.html
+++ b/ForgeActivity/forgeactivity/templates/widgets/profile_section.html
@@ -28,7 +28,7 @@
{% if c.user and not c.user.is_anonymous() and c.user != user %}
{{follow_toggle.display(following=following,
action=activity_app.url+'follow')}}
{% endif %}
- {{ g.icons['feed'].render(href='feed.rss', title='RSS') }}
+ {{ g.icons['feed'].render(href='feed.rss', title='RSS', rel='nofollow') }}
{% endblock %}
{% block section_class %}activity{% endblock %}
diff --git a/ForgeBlog/forgeblog/templates/blog/index.html
b/ForgeBlog/forgeblog/templates/blog/index.html
index 5589d39..97fd05e 100644
--- a/ForgeBlog/forgeblog/templates/blog/index.html
+++ b/ForgeBlog/forgeblog/templates/blog/index.html
@@ -28,7 +28,7 @@
{% endblock %}
{% block actions %}
- {{ g.icons['feed'].render(href='feed.rss', title='RSS') }}
+ {{ g.icons['feed'].render(href='feed.rss', title='RSS', rel='nofollow') }}
{% endblock %}
{% block content %}
diff --git a/ForgeBlog/forgeblog/templates/blog/post.html
b/ForgeBlog/forgeblog/templates/blog/post.html
index 1b91176..0b1ff64 100644
--- a/ForgeBlog/forgeblog/templates/blog/post.html
+++ b/ForgeBlog/forgeblog/templates/blog/post.html
@@ -30,7 +30,7 @@
{% if c.user and c.user != c.user.anonymous() %}
{{c.subscribe_form.display(value=subscribed, action='subscribe',
style='icon')}}
{% endif %}
- {{ g.icons['feed'].render(href='feed.rss', title='RSS') }}
+ {{ g.icons['feed'].render(href='feed.rss', title='RSS', rel='nofollow') }}
{% endblock %}
{% block content %}
diff --git
a/ForgeDiscussion/forgediscussion/templates/discussionforums/index.html
b/ForgeDiscussion/forgediscussion/templates/discussionforums/index.html
index 93acf7c..941a62d 100644
--- a/ForgeDiscussion/forgediscussion/templates/discussionforums/index.html
+++ b/ForgeDiscussion/forgediscussion/templates/discussionforums/index.html
@@ -24,7 +24,7 @@
{% block header %}{{c.app.config.options.mount_label}}{% endblock %}
{% block actions %}
- {{ g.icons['feed'].render(href='feed.rss', extra_css='follow',
title='Follow') }}
+ {{ g.icons['feed'].render(href='feed.rss', extra_css='follow',
title='Follow', rel='nofollow') }}
{% endblock %}
{% if h.has_access(c.app, 'configure')() and (not hide_forum) %}
diff --git
a/ForgeDiscussion/forgediscussion/templates/discussionforums/thread.html
b/ForgeDiscussion/forgediscussion/templates/discussionforums/thread.html
index c453d79..cbf0517 100644
--- a/ForgeDiscussion/forgediscussion/templates/discussionforums/thread.html
+++ b/ForgeDiscussion/forgediscussion/templates/discussionforums/thread.html
@@ -30,7 +30,7 @@
{{ g.icons['edit'].render(id='mod_thread_link') }}
{% endif %}
{# {{ g.icons['tag'].render(title='Label This', extra_css='thread_tag') }}
these labels aren't used anywhere ... #}
- {{ g.icons['feed'].render(href='feed.rss', title='Follow This',
extra_css='thread_feed0') }}
+ {{ g.icons['feed'].render(href='feed.rss', title='Follow This',
extra_css='thread_feed0', rel='nofollow') }}
{{ c.thread_subscription_form.display(value=thread.subscribed(),
action='subscribe', style='icon', thing='topic') }}
{% endblock %}
diff --git a/ForgeTracker/forgetracker/templates/tracker/index.html
b/ForgeTracker/forgetracker/templates/tracker/index.html
index a672ca5..c4c3cb1 100644
--- a/ForgeTracker/forgetracker/templates/tracker/index.html
+++ b/ForgeTracker/forgetracker/templates/tracker/index.html
@@ -31,7 +31,7 @@
{% block actions %}
{{ lib.maximize_content_button() }}
- {{ g.icons['feed'].render(href=c.app.url + 'feed.rss', title='Follow') }}
+ {{ g.icons['feed'].render(href=c.app.url + 'feed.rss', title='Follow',
rel='nofollow') }}
{% if c.user and c.user != c.user.anonymous() %}
{{c.subscribe_form.display(value=subscribed, action='subscribe',
style='icon')}}
{% endif %}
diff --git a/ForgeTracker/forgetracker/templates/tracker/search.html
b/ForgeTracker/forgetracker/templates/tracker/search.html
index 8e34d31..36280aa 100644
--- a/ForgeTracker/forgetracker/templates/tracker/search.html
+++ b/ForgeTracker/forgetracker/templates/tracker/search.html
@@ -32,7 +32,7 @@
{% block actions %}
{{ lib.maximize_content_button() }}
{% set feed_url = tg.url(c.app.url+'search_feed/', dict(q=q, limit=limit,
sort=sort)) %}
- {{ g.icons['feed'].render(href=feed_url) }}
+ {{ g.icons['feed'].render(href=feed_url, rel='nofollow') }}
{% if allow_edit and count != 0 %}
{% set bulk_edit_url = tg.url(c.app.url+'edit/', dict(q=q, limit=limit,
sort=sort, page=page, filter=filter)) %}
{{ g.icons['edit'].render(href=bulk_edit_url, title='Bulk Edit') }}
diff --git a/ForgeTracker/forgetracker/templates/tracker/ticket.html
b/ForgeTracker/forgetracker/templates/tracker/ticket.html
index ec13e24..2688cc9 100644
--- a/ForgeTracker/forgetracker/templates/tracker/ticket.html
+++ b/ForgeTracker/forgetracker/templates/tracker/ticket.html
@@ -34,7 +34,7 @@
{% set editable = h.has_access(ticket, 'update') and not ticket.deleted %}
{% block actions %}
- {{ g.icons['feed'].render(href='feed.rss', title='Follow this Ticket') }}
+ {{ g.icons['feed'].render(href='feed.rss', title='Follow this Ticket',
rel='nofollow') }}
{% if c.user and c.user != c.user.anonymous() %}
{{c.subscribe_form.display(value=subscribed, action='subscribe',
style='icon')}}
{% endif %}
diff --git a/ForgeWiki/forgewiki/templates/wiki/page_view.html
b/ForgeWiki/forgewiki/templates/wiki/page_view.html
index c9064ad..20b5b6a 100644
--- a/ForgeWiki/forgewiki/templates/wiki/page_view.html
+++ b/ForgeWiki/forgewiki/templates/wiki/page_view.html
@@ -70,7 +70,7 @@
{% if c.user and c.user != c.user.anonymous() %}
{{c.subscribe_form.display(value=page_subscribed, action='subscribe',
style='icon')}}
{% endif %}
- {{ g.icons['feed'].render(href='feed', title='RSS') }}
+ {{ g.icons['feed'].render(href='feed', title='RSS', rel='nofollow') }}
{{ g.icons['search'].render(href='../search') }}
{% endblock %}