Anonymous avatar Anonymous committed 5e47d14

Modified the Template to spread across two hosts.

Comments (0)

Files changed (1)

 <define-tag rellink>
-<if <match "%0" "^http://" action="report" /> "%0" "$(ROOT)/%0" />
+<preserve url />
+<preserve host />
+<set-var %attributes />
+<set-var host=<if "<get-var host />" "<get-var host />" "t2" /> />
+<if <match "<get-var url />" "^http://" action="report" />
+    "<get-var url />" 
+    <ifeq "$(SERVER)" "<get-var host />"
+        "$(ROOT)/<get-var url />"
+        "http://<get-var host /><get-var url />"
+    />
+<restore host />
+<restore url />
 <define-tag navbarlink>
-<set-var l="<rellink "%0" />" />
+<preserve host />
+<set-var %attributes />
+<set-var l="<rellink url="%0" host=<get-var host /> />" />
     ;;; Determine if %0 matches this document
     <ifeq "$(FILENAME)" "%0"
     "<a href="<get-var l />">%1</a>"
+<restore host />
 <define-tag humour:navbar>
 <define-tag oss:navbar>
 <ul class="navbarnested">
-<li><navbarlink "<vipe:url "freecell-solver/" />" "Freecell Solver" /></li>
+<li><navbarlink "freecell-solver/" "Freecell Solver" host="vipe" /></li>
 <li><navbarlink "jmikmod/" "MikMod for Java" /></li>
-<li><navbarlink "<vipe:url "rwlock/" />" "FCFS RWLock" /></li>
-<li><navbarlink "<vipe:url "lm-solve/" />" "LM-Solve" /></li>
-<li><navbarlink "<vipe:url "quadpres/" />" "Quad-Pres" /></li>
+<li><navbarlink "rwlock/" "FCFS RWLock" host="vipe" /></li>
+<li><navbarlink "lm-solve/" "LM-Solve" host="vipe" /></li>
+<li><navbarlink "quadpres/" "Quad-Pres" host="vipe" /></li>
-<li><navbarlink "" "Lectures" /></li>
+<li><navbarlink "lecture/" "Lectures" host="vipe" /></li>
 <li><navbarlink "DeCSS/" "Opinion on DeCSS" /></li>
 <li><br /></li>
 <li><navbarlink "links.html" "Cool Links" /></li>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.