summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/main.php9
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>