summaryrefslogtreecommitdiff
path: root/web/views
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2015-02-27 10:04:55 +0100
committerJochen Topf <jochen@topf.org>2015-02-27 10:04:55 +0100
commit89fb3c5faa448115d690328c5ce2538831880122 (patch)
tree7cebace49c6a4ef10e0251a069f9f41d497317b4 /web/views
parent441dce41853082a062afdfac805421f204b64f34 (diff)
downloadtaginfo-89fb3c5faa448115d690328c5ce2538831880122.tar
taginfo-89fb3c5faa448115d690328c5ce2538831880122.tar.gz
Add rel="nofollow" to project links.
To discourage spam. The links are created from javascript, so search engines will have a hard time picking them up anyway. Oh well, better safe than sorry.
Diffstat (limited to 'web/views')
-rw-r--r--web/views/project.erb6
1 files changed, 3 insertions, 3 deletions
diff --git a/web/views/project.erb b/web/views/project.erb
index c4ff153..b82f925 100644
--- a/web/views/project.erb
+++ b/web/views/project.erb
@@ -37,16 +37,16 @@ function page_init2() {
doc_url = #{ @project['doc_url'].to_json };
if (project_url) {
- jQuery('#project_url').html(link_to_url(project_url));
+ jQuery('#project_url').html(link_to_url_nofollow(project_url));
}
if (icon_url) {
jQuery('#icon_url').html(img({ src: icon_url, width: 16, height: 16, alt: ''}));
}
if (json_url) {
- jQuery('#json_url').html(link_to_url(json_url));
+ jQuery('#json_url').html(link_to_url_nofollow(json_url));
}
if (doc_url) {
- jQuery('#doc_url').html(link_to_url(doc_url));
+ jQuery('#doc_url').html(link_to_url_nofollow(doc_url));
}
init_tabs([project]);