You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by el...@apache.org on 2018/11/21 16:05:49 UTC
[trafficcontrol] branch master updated: makes link to TP
documentation configurable
This is an automated email from the ASF dual-hosted git repository.
elsloo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git
The following commit(s) were added to refs/heads/master by this push:
new 9b1dc8f makes link to TP documentation configurable
9b1dc8f is described below
commit 9b1dc8f78397d68da470beb977286d335077d2d2
Author: Jeremy Mitchell <mi...@gmail.com>
AuthorDate: Tue Nov 20 19:58:52 2018 -0700
makes link to TP documentation configurable
---
traffic_ops/app/conf/cdn.conf | 1 +
traffic_ops/app/templates/not_found.html.ep | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/traffic_ops/app/conf/cdn.conf b/traffic_ops/app/conf/cdn.conf
index c21a847..8852291 100644
--- a/traffic_ops/app/conf/cdn.conf
+++ b/traffic_ops/app/conf/cdn.conf
@@ -43,6 +43,7 @@
},
"portal" : {
"base_url" : "http://localhost:8080/!#/",
+ "docs_url" : "https://traffic-control-cdn.readthedocs.io/en/latest/admin/traffic_portal/usingtrafficportal.html",
"email_from" : "no-reply@traffic-portal-domain.com",
"pass_reset_path" : "user",
"user_register_path" : "user"
diff --git a/traffic_ops/app/templates/not_found.html.ep b/traffic_ops/app/templates/not_found.html.ep
index 74a3446..d74031a 100644
--- a/traffic_ops/app/templates/not_found.html.ep
+++ b/traffic_ops/app/templates/not_found.html.ep
@@ -27,7 +27,7 @@
</div>
<div style="margin-top:20px;clear:both;">
- If you are looking for a web page, the old Traffic Ops user interface was removed in Traffic Ops 4.0. Please use the <a href="https://traffic-control-cdn.readthedocs.io/en/latest/admin/traffic_portal/usingtrafficportal.html#usingtrafficportal">Traffic Portal</a> instead.
+ If you are looking for a web page, the old Traffic Ops user interface was removed in Traffic Ops 4.0. Please use the <a href="<%= $config->{'portal'}{'docs_url'} %>"> Traffic Portal</a> instead.
</div>
</div>
</div>