diff --git a/CHANGES.md b/CHANGES.md index 28b96aaa..6f1071ad 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,4 +1,4 @@ -### 0.x.x (2014-11-xx xx:xx:xx UTC) +### 0.x.x (2014-12-xx xx:xx:xx UTC) * Fix searches freezing due to unescaped ignored or required words * Add failed database to unit tests tear down function @@ -10,11 +10,12 @@ * Change update Plex notifier (port from SickBeard) * Change Plex notifications to allow authenticated library updates (port from mmccurdy07/Sick-Beard) * Change Config/Notifications/Plex logo and description (adapted port from mmccurdy07/Sick-Beard) +* Add ability for CSS/JS to target a specific page and layout [develop changelog] -### 0.4.0 (2014-11-27 03:30:00 UTC) +### 0.4.0 (2014-12-04 10:50:00 UTC) * Change footer stats to not add newlines when copy/pasting from them * Remove redundant references from Config/Help & Info diff --git a/gui/slick/interfaces/default/inc_top.tmpl b/gui/slick/interfaces/default/inc_top.tmpl index dbad8a2d..fa569ab6 100644 --- a/gui/slick/interfaces/default/inc_top.tmpl +++ b/gui/slick/interfaces/default/inc_top.tmpl @@ -252,5 +252,17 @@ #end if +#set $items = [] +#try + $items.append($topmenu) +#except (NameError, NotFound): + #pass +#end try +#try + $items.append($layout) +#except (NameError, NotFound): + #pass +#end try +#set $page_class = ('', ' class="%s"' % '_'.join($items).lower().replace(' ', '-'))[0 < len($items)]