This is an automated email from the ASF dual-hosted git repository. kentontaylor pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/allura.git
commit 437f4b12e39bd7f49abed0b396e7fe5145dceca7 Author: Dave Brondsema <[email protected]> AuthorDate: Fri Feb 25 18:12:08 2022 -0500 rel=nofollow on diff link, lots of them and not very useful content for search indexing --- Allura/allura/templates/repo/commit.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Allura/allura/templates/repo/commit.html b/Allura/allura/templates/repo/commit.html index 37c8754..c929b29 100644 --- a/Allura/allura/templates/repo/commit.html +++ b/Allura/allura/templates/repo/commit.html @@ -147,7 +147,7 @@ Commit <a href="{{commit.url()}}">{{commit.shorthand_id()}}</a> {{commit_labels( <a href="{{ file_url }}">{{h.really_unicode(file)}}</a> {% if obj_type != 'tree' and is_text %} {% set diff_url = file_url + '?barediff=' + (prev[0]._id if prev else '') %} - <a class="commit-diff-link" href="{{ diff_url.replace('?barediff=', '?diff=') }}">Diff</a> + <a class="commit-diff-link" rel="nofollow" href="{{ diff_url.replace('?barediff=', '?diff=') }}">Diff</a> <a class="commit-diff-link switch-diff-format-link" rel="nofollow" data-diformat="{{session.diformat}}" data-diffid="diff-{{loop.index}}" href="{{ diff_url }}">Switch to {{'unified' if session.diformat == 'sidebyside' else 'side-by-side'}} view</a> {% endif %} {% elif type == 'removed' %} @@ -160,7 +160,7 @@ Commit <a href="{{commit.url()}}">{{commit.shorthand_id()}}</a> {{commit_labels( <a href="{{ new_file_url }}">{{h.really_unicode(file.new)}}</a> {% if file.ratio != 1 %} {% set diff_url = new_file_url + '?barediff=' + (prev[0]._id if prev else '') + '&prev_file=' + h.urlquote(h.really_unicode(file['old'])) %} - <a class="commit-diff-link" href="{{ diff_url.replace('?barediff=', '?diff=') }}">Diff</a> + <a class="commit-diff-link" rel="nofollow" href="{{ diff_url.replace('?barediff=', '?diff=') }}">Diff</a> <a class="commit-diff-link switch-diff-format-link" rel="nofollow" data-diformat="{{session.diformat}}" data-diffid="diff-{{loop.index}}" href="{{diff_url}}">Switch to {{'unified' if session.diformat == 'sidebyside' else 'side-by-side'}} view</a> {% endif %} {% endif %}
