revamped document titles - better readability;

This commit is contained in:
Tobias Klika
2011-07-02 17:37:34 +02:00
parent b9413ed53d
commit 495b6822f1
2 changed files with 12 additions and 5 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
!!!
%html
%head
%title Nineminutes
%title 9minutes
= include_stylesheets :common, :media=>'all'
= javascript_include_tag "http://www.google.com/jsapi"
= include_javascripts :jquery, :helper, :plugins, :common
+11 -4
View File
@@ -7,12 +7,19 @@
titleLink = titleLink.replaceAll("/","");
if(titleLink == "artists")
switch(titleLink)
{
titleLink = special;
special = null;
case "artists":
titleLink = special;
special = null;
break;
case "home":
document.title = documentTitle;
return;
break;
}
document.title = documentTitle + " » " + titleLink.urifyAll();
document.title = titleLink.urifyAll();
if (special) document.title += " » " + special.urifyAll();
document.title += " on " + documentTitle;
}