diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-08-30 19:01:36 +0200 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-08-30 19:01:44 +0200 |
commit | 6f23208ff68d4a8bf2fc20b1fcad6b5e636fb584 (patch) | |
tree | 835da8a2b726dbab5ae5242d5d467c1801b7903f /templates | |
parent | f0bbfee2b49c4bf36ffe668a022a5357c03bf0b2 (diff) |
conditionally load in stylesheets for owncloud 6 to fix layout problems, fix #320
Diffstat (limited to 'templates')
-rw-r--r-- | templates/main.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/templates/main.php b/templates/main.php index 35c8e31a5..ab70caddf 100644 --- a/templates/main.php +++ b/templates/main.php @@ -18,6 +18,15 @@ \OCP\Util::addStyle('news', 'settings'); \OCP\Util::addStyle('news', 'showall'); +// stylesheets for different OC versions +$version = \OCP\Util::getVersion(); + +// owncloud 6 +if($version[0] > 5 || ($version[0] >= 5 && $version[1] >= 80)) { + \OCP\Util::addStyle('news', 'owncloud6'); +} + + ?> <div id="app" ng-app="News" ng-cloak> |