Skip to content

Commit

Permalink
webapp: Add nofollow to reports link (#142)
Browse files Browse the repository at this point in the history
Too much useless crawling for it. Later we'll keep a trach of whether
there are any reports for the project any only leave nofollow for empty
reports pages.
  • Loading branch information
AMDmi3 committed Dec 17, 2024
1 parent 23b1b92 commit 16a9d56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion repology-webapp/templates/project/_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<a href="{{ ctx.url_for(crate::endpoints::Endpoint::ProjectRelated, [("project_name", project_name|as_ref)])? }}" class="btn btn-default{% if ctx.is_endpoint(crate::endpoints::Endpoint::ProjectRelated) %} active{% endif %}">Related</a>
{% endif %}
<a href="{{ ctx.url_for(crate::endpoints::Endpoint::ProjectBadges, [("project_name", project_name|as_ref)])? }}" class="btn btn-default{% if ctx.is_endpoint(crate::endpoints::Endpoint::ProjectBadges) %} active{% endif %}">Badges</a>
<a href="{{ ctx.url_for(crate::endpoints::Endpoint::ProjectReport, [("project_name", project_name|as_ref)])? }}" class="btn btn-default{% if ctx.is_endpoint(crate::endpoints::Endpoint::ProjectReport) %} active{% endif %}"><span class="text-danger">Report</span></a>
<a href="{{ ctx.url_for(crate::endpoints::Endpoint::ProjectReport, [("project_name", project_name|as_ref)])? }}" class="btn btn-default{% if ctx.is_endpoint(crate::endpoints::Endpoint::ProjectReport) %} active{% endif %}" rel="nofollow"><span class="text-danger">Report</span></a>
</div>
{% endif %}{% endif %}
{% endblock %}

0 comments on commit 16a9d56

Please sign in to comment.