Difference between revisions of "Template:Team:Aachen/Footer"
Line 62: | Line 62: | ||
var pages = window.location.href.split('/'); | var pages = window.location.href.split('/'); | ||
for (i = 0; i < splits.length - 1; i++) | for (i = 0; i < splits.length - 1; i++) | ||
− | + | { | |
− | + | if (splits[i].trim() != "Team:Aachen")//do not attach the link for the landing page | |
+ | { | ||
+ | switch (splits[i]) | ||
+ | { | ||
+ | case "Notebook": output += splits[i] + " / "; break; // do not link to these level-1-pages | ||
+ | default: | ||
+ | output += '<a href="' + pages.slice(0, pages.length - splits.length + 1 + i).join('/') + '">' + splits[i] + '</a> / '; | ||
+ | } | ||
+ | } | ||
+ | } | ||
output += '</span>' + splits[splits.length-1].replace("Team:Aachen", "iGEM Aachen"); | output += '</span>' + splits[splits.length-1].replace("Team:Aachen", "iGEM Aachen"); | ||
$(".headline_fill").html(output); | $(".headline_fill").html(output); | ||
Line 139: | Line 148: | ||
<script> | <script> | ||
$('p').each(function () { | $('p').each(function () { | ||
− | var templ = '<a href="http://tubefront.com/iGEM_Aachen/editcontainer.php?id=$1" onmouseover="loadTooltip(this,' + "'$1'" + ')">$1</a>'; | + | var templ = '<a href="http://tubefront.com/public/iGEM_Aachen/editcontainer.php?id=$1" onmouseover="loadTooltip(this,' + "'$1'" + ')">$1</a>'; |
var replaced = $('body').html().replace(/#(\S*)#/g, templ); | var replaced = $('body').html().replace(/#(\S*)#/g, templ); | ||
$('body').html(replaced); | $('body').html(replaced); |
Revision as of 17:13, 16 September 2015