revamped document titles - better readability;
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user