diff templates/base.html @ 397:29d4b5e45423

Use flask to render site and get rid of submodules We don't want to use statically generated html files anymore. We are using flask to do the routing and render the templates for now. This means we also get rid of the submoduels and put everything together in templates/.
author David Soria Parra <davidsp@fb.com>
date Fri, 07 Mar 2014 14:47:13 -0800
parents bb27170e2218
children 1004393230cf
line wrap: on
line diff
--- a/templates/base.html	Mon Feb 11 14:05:01 2013 +0100
+++ b/templates/base.html	Fri Mar 07 14:47:13 2014 -0800
@@ -3,12 +3,12 @@
 <html>
     <head>
         <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-        <link href="/css/styles.css" type="text/css" rel="stylesheet">
-        <script type="text/javascript" src="/js/typeface-0.15.js"></script>
-        <script type="text/javascript" src="/js/optimer_regular.typeface.js"></script>
-        <script type="text/javascript" src="/js/common.js"></script>
+        <link href="{{ url_for('static', filename='css/styles.css') }}" type="text/css" rel="stylesheet">
+        <script type="text/javascript" src="{{ url_for('static', filename='js/typeface-0.15.js') }}"></script>
+        <script type="text/javascript" src="{{ url_for('static', filename='js/optimer_regular.typeface.js') }}"></script>
+        <script type="text/javascript" src="{{ url_for('static', filename='js/common.js') }}"></script>
         <script type="text/javascript" src="/sources.js"></script>
-        <script type="text/javascript" src="/js/download.js"></script>
+        <script type="text/javascript" src="{{ url_for('static', filename='js/download.js') }}"></script>
         <script language="javascript">
           Downloader.init(sources);
           var dl = Downloader.select();
@@ -21,12 +21,12 @@
         <h1 id="logo"><a href="/">mercurial</a></h1>
             
         <ul id="nav" class="typeface-js">
-            <li><a href="/about/">about</a></li>
-            <li><a href="/guide/">guide</a></li>
-            <li><a href="/downloads/">download</a></li>
+            <li><a href="/about">about</a></li>
+            <li><a href="/guide">guide</a></li>
+            <li><a href="/downloads">download</a></li>
             <li><a href="http://mercurial.selenic.com/wiki/UsingExtensions">extensions</a></li>
             <li><a href="http://mercurial.selenic.com/wiki/">news/wiki</a></li>
-            <li><a href="/sponsors/">sponsors</a></li>
+            <li><a href="/sponsors">sponsors</a></li>
         </ul>
         
         <form id="search" method="get" action="http://mercurial.selenic.com/wiki/Mercurial">