[LNT] r256214 - Fix URLs

Chris Matthews via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 21 15:26:09 PST 2015


Author: cmatthews
Date: Mon Dec 21 17:26:08 2015
New Revision: 256214

URL: http://llvm.org/viewvc/llvm-project?rev=256214&view=rev
Log:
Fix URLs

The urls in the new System bar do not work on LNT instances that are not
attached to / on the server.  Fix that.

Modified:
    lnt/trunk/lnt/server/ui/templates/layout.html

Modified: lnt/trunk/lnt/server/ui/templates/layout.html
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/ui/templates/layout.html?rev=256214&r1=256213&r2=256214&view=diff
==============================================================================
--- lnt/trunk/lnt/server/ui/templates/layout.html (original)
+++ lnt/trunk/lnt/server/ui/templates/layout.html Mon Dec 21 17:26:08 2015
@@ -167,9 +167,9 @@
                     <li class="dropdown">
                         <a href="#" class="dropdown-toggle" data-toggle="dropdown">System<b class="caret"></b></a>
                         <ul class="dropdown-menu">
-                          <li><a href="/log">Logs</a></li>
-                          <li><a href="/rules">Rules</a></li>
-                          <li><a href="/static/docs/index.html">Documentation</a></li>
+                          <li><a href="{{ url_for('log') }}">Logs</a></li>
+                          <li><a href="{{ url_for('rules') }}">Rules</a></li>
+                          <li><a href="{{ url_for('.static', filename='docs/index.html') }}">Documentation</a></li>
                         </ul>
                     </li>
                 </ul>




More information about the llvm-commits mailing list