[SUCS Devel] site r669 - trunk/templates

imranh at sucs.org imranh at sucs.org
Tue Apr 14 18:33:31 BST 2015


Author: imranh
Date: 2015-04-14 18:33:22 +0100 (Tue, 14 Apr 2015)
New Revision: 669

Modified:
   trunk/templates/banana-leaders.tpl
   trunk/templates/branding.tpl
   trunk/templates/breadcrumb.tpl
   trunk/templates/games.tpl
   trunk/templates/head.tpl
   trunk/templates/index.tpl
   trunk/templates/news.tpl
   trunk/templates/options.tpl
   trunk/templates/signup.tpl
   trunk/templates/users.tpl
Log:
add {} in places so people aren't thrown about all over the place

Modified: trunk/templates/banana-leaders.tpl
===================================================================
--- trunk/templates/banana-leaders.tpl	2015-04-14 15:58:23 UTC (rev 668)
+++ trunk/templates/banana-leaders.tpl	2015-04-14 17:33:22 UTC (rev 669)
@@ -4,9 +4,9 @@
 <ol>
 {foreach name=top from=$stats.yeartop key=key item=member}
 	{if $member.real == TRUE} 
-		<li><a href="/Community/Members/{$member.username}">{$member.username}</a> ({$member.sum})</li>
+		<li><a href="{$baseurl}/Community/Members/{$member.username}">{$member.username}</a> ({$member.sum})</li>
 	{else}
-		<li><a href="/Community/Bananas/{$member.username}">{$member.username}</a> ({$member.sum})</li>
+		<li><a href="{$baseurl}/Community/Bananas/{$member.username}">{$member.username}</a> ({$member.sum})</li>
 	{/if}
 {/foreach}
 </ol>
@@ -18,9 +18,9 @@
 <ol>
 {foreach name=top from=$stats.top key=key item=member}
 	{if $member.real == TRUE} 
-		<li><a href="/Community/Members/{$member.username}">{$member.username}</a> ({$member.sum})</li>
+		<li><a href="{$baseurl}/Community/Members/{$member.username}">{$member.username}</a> ({$member.sum})</li>
 	{else}
-		<li><a href="/Community/Bananas/{$member.username}">{$member.username}</a> ({$member.sum})</li>
+		<li><a href="{$baseurl}/Community/Bananas/{$member.username}">{$member.username}</a> ({$member.sum})</li>
 	{/if}
 {/foreach}
 </ol>
@@ -31,9 +31,9 @@
 <ol>
 {foreach name=top from=$stats.bottom key=key item=member}
 	{if $member.real == TRUE}        
-		<li><a href="/Community/Members/{$member.username}">{$member.username}</a> ({$member.sum})</li>
+		<li><a href="{$baseurl}/Community/Members/{$member.username}">{$member.username}</a> ({$member.sum})</li>
 	{else}
-		<li><a href="/Community/Bananas/{$member.username}">{$member.username}</a> ({$member.sum})</li>
+		<li><a href="{$baseurl}/Community/Bananas/{$member.username}">{$member.username}</a> ({$member.sum})</li>
 	{/if}
 {/foreach}
 </ol>

Modified: trunk/templates/branding.tpl
===================================================================
--- trunk/templates/branding.tpl	2015-04-14 15:58:23 UTC (rev 668)
+++ trunk/templates/branding.tpl	2015-04-14 17:33:22 UTC (rev 669)
@@ -3,7 +3,7 @@
 	<div class="cornerTopLeft">
 	<div class="cornerTopRight">
 		<div id="logo">
-			<a href="/"><img src="/images/sucslogo-halo.png" width="170" height="76" alt="SUCS" /></a>
+			<a href="{$baseurl}"><img src="{$baseurl}/images/sucslogo-halo.png" width="170" height="76" alt="SUCS" /></a>
 		</div>
 
 {include file="login.tpl"}

Modified: trunk/templates/breadcrumb.tpl
===================================================================
--- trunk/templates/breadcrumb.tpl	2015-04-14 15:58:23 UTC (rev 668)
+++ trunk/templates/breadcrumb.tpl	2015-04-14 17:33:22 UTC (rev 669)
@@ -2,7 +2,7 @@
 {if $pathlist}
 				<ul>
 {foreach name=pathlist from=$pathlist key=key item=item}
-					<li>{if !$smarty.foreach.pathlist.first}{if $item!=""}> {/if}{/if}{if !$smarty.foreach.pathlist.last}<a href="{buildpath list=$pathlist item=$item}">{/if}{if $item}{$item|escape:'htmlall'}{else}{if $smarty.foreach.pathlist.first}SUCS{/if}{/if}{if !$smarty.foreach.pathlist.last}</a>{/if}</li>
+					<li>{if !$smarty.foreach.pathlist.first}{if $item!=""}> {/if}{/if}{if !$smarty.foreach.pathlist.last}<a href="{$baseurl}{buildpath list=$pathlist item=$item}">{/if}{if $item}{$item|escape:'htmlall'}{else}{if $smarty.foreach.pathlist.first}SUCS{/if}{/if}{if !$smarty.foreach.pathlist.last}</a>{/if}</li>
 {/foreach}
 				</ul>
 {/if}

Modified: trunk/templates/games.tpl
===================================================================
--- trunk/templates/games.tpl	2015-04-14 15:58:23 UTC (rev 668)
+++ trunk/templates/games.tpl	2015-04-14 17:33:22 UTC (rev 669)
@@ -1,7 +1,7 @@
 {include file="../static/fragments/Games.txt"}
 <ul class="boxes">
 {foreach name=games from=$games item=game}
-<li><div class="cbb"><a href="/Games/{$game.name}"><div>
+<li><div class="cbb"><a href="{$baseurl}/Games/{$game.name}"><div>
 <img src="/pictures/games/{$game.name|escape:url}.jpg" alt="{$game.name}" />
 <br />{$game.name}
 </div></a></div></li>

Modified: trunk/templates/head.tpl
===================================================================
--- trunk/templates/head.tpl	2015-04-14 15:58:23 UTC (rev 668)
+++ trunk/templates/head.tpl	2015-04-14 17:33:22 UTC (rev 669)
@@ -4,10 +4,10 @@
 <head>
 	<meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
 	<title>{$title} - SUCS</title>
-	<link rel="SHORTCUT ICON" href="/favicon.ico" />
-	<link rel="apple-touch-icon" href="/images/apple-touch-icon.png" />
+	<link rel="SHORTCUT ICON" href="{$baseurl}/favicon.ico" />
+	<link rel="apple-touch-icon" href="{$baseurl}/images/apple-touch-icon.png" />
 
-	<script type="text/javascript" src="/videos/talks/ufo.js"></script>
+	<script type="text/javascript" src="{$baseurl}/videos/talks/ufo.js"></script>
 	
 	<link rel="stylesheet" type="text/css" href="{$baseurl}/css/common.css" media="screen,print" />
 	<link rel="stylesheet" type="text/css" href="{$baseurl}/css/sucs.css" media="screen" />

Modified: trunk/templates/index.tpl
===================================================================
--- trunk/templates/index.tpl	2015-04-14 15:58:23 UTC (rev 668)
+++ trunk/templates/index.tpl	2015-04-14 17:33:22 UTC (rev 669)
@@ -18,7 +18,7 @@
 </ul>
 <div class="clear"></div>
 {/if}
-Page last modified{if $modifiedby} by <a href="/Community/Members/{$modifiedby}">{$modifiedby}</a>{/if} on {$modified}
+Page last modified{if $modifiedby} by <a href="{$baseurl}/Community/Members/{$modifiedby}">{$modifiedby}</a>{/if} on {$modified}
 </div>
 {/if}
 </div>

Modified: trunk/templates/news.tpl
===================================================================
--- trunk/templates/news.tpl	2015-04-14 15:58:23 UTC (rev 668)
+++ trunk/templates/news.tpl	2015-04-14 17:33:22 UTC (rev 669)
@@ -27,7 +27,7 @@
 </div>
 {/if}
 	</div>
-	<div class="boxfoot"><p>Posted by <a href="/Community/Members/{$item.author}">{$item.author}</a> on {$item.date|date_format }</p></div>
+	<div class="boxfoot"><p>Posted by <a href="{$baseurl}/Community/Members/{$item.author}">{$item.author}</a> on {$item.date|date_format }</p></div>
 </div>
 {foreachelse}
 <p>News item not found</p>

Modified: trunk/templates/options.tpl
===================================================================
--- trunk/templates/options.tpl	2015-04-14 15:58:23 UTC (rev 668)
+++ trunk/templates/options.tpl	2015-04-14 17:33:22 UTC (rev 669)
@@ -28,7 +28,7 @@
 	</div>
 	<div class="row">
 		<label for="groups">Groups: </label>
-		<span class="textinput"><span class="note"><a href="/Knowledge/Help/Admin%20Tools/Groups">What are “Groups”?</a></span></span>
+		<span class="textinput"><span class="note"><a href="{$baseurl}/Knowledge/Help/Admin%20Tools/Groups">What are “Groups”?</a></span></span>
 	</div>
 	<div class="row">
 		<span class="textinput" id="groups">

Modified: trunk/templates/signup.tpl
===================================================================
--- trunk/templates/signup.tpl	2015-04-14 15:58:23 UTC (rev 668)
+++ trunk/templates/signup.tpl	2015-04-14 17:33:22 UTC (rev 669)
@@ -18,7 +18,7 @@
                 <input type="submit" name="submit" value="Sign Up" /></span>
             </div>
             <div class="clear"></div>
-            <div class="note">If you wish to renew an existing account instead, please login to <a href="https://sucs.org/Options">Membership Options</a> using your existing account details.</div>
+            <div class="note">If you wish to renew an existing account instead, please login to <a href="{$baseurl}/Options">Membership Options</a> using your existing account details.</div>
         </div>
         <div class="hollowfoot"><div><div></div></div></div>
     </div>
@@ -76,7 +76,7 @@
 					<div id="phonemessage"{if $mode=='re-form'}{if isset($errors.phone)} style="color:red; float:right; clear:right;">{$errors.phone}{else} style="color:green; float:right; clear:right;">OK{/if}{else}>{/if}</div>
 				</div>
 		                <div class="row" id="tncdiv">
-                                        <span class="textinput"><input type="checkbox" id="tnc" name="tnc" size="30" {if $mode=='re-form'}value='{$fields.tnc}'{/if}/>I have read and understood, and agree to be bound by the <a href="/About/Conditions">Terms and Conditions</a>.</span>
+                                        <span class="textinput"><input type="checkbox" id="tnc" name="tnc" size="30" {if $mode=='re-form'}value='{$fields.tnc}'{/if}/>I have read and understood, and agree to be bound by the <a href="{$baseurl}/About/Conditions">Terms and Conditions</a>.</span>
 					<div id="tncmessage"{if $mode=='re-form'}{if isset($errors.tnc)} style="color:red; float:right; clear:right;">{$errors.tnc}{else} style="color:green; float:right; clear:right;">OK{/if}{else}>{/if}</div>
 				</div>
 			{if $overridable}
@@ -94,7 +94,7 @@
 {elseif $mode=='result'}
 {if !$failed}
 <h1>Welcome to SUCS</h1>
-<p>Signup is complete, please see below for your password, a copy has also been send to {$email}, we request you change this immediatley. See our <a href="/Getting%20Started">Getting Started</a> page for some ways you can start using your new SUCS account!</p>
+<p>Signup is complete, please see below for your password, a copy has also been send to {$email}, we request you change this immediatley. See our <a href="{$baseurl}/Getting%20Started">Getting Started</a> page for some ways you can start using your new SUCS account!</p>
 <p>
 Username: <strong>{$username}</strong><br />
 Password: <strong>{$password}</strong><br />

Modified: trunk/templates/users.tpl
===================================================================
--- trunk/templates/users.tpl	2015-04-14 15:58:23 UTC (rev 668)
+++ trunk/templates/users.tpl	2015-04-14 17:33:22 UTC (rev 669)
@@ -10,7 +10,7 @@
 </tr>
 {foreach name=users from=$users item=user}
 <tr>
-	<td><a href="/Community/Members/{$user.username|escape:'url'}">{$user.username}</a></td>
+	<td><a href="{$baseurl}/Community/Members/{$user.username|escape:'url'}">{$user.username}</a></td>
 	<td>{$user.idle}</td>
 </tr>
 {/foreach}




More information about the Devel mailing list