diff --git a/templates/clients.php b/templates/clients.php
index 72d1ad9..d3d378c 100644
--- a/templates/clients.php
+++ b/templates/clients.php
@@ -1,11 +1,15 @@
getURLGenerator();
-$l = \OC::$server->getL10N('timemanager');
+$l = Util::getL10N('timemanager');
?>
-inc( 'partials/navigation' ) ); ?>
+inc('partials/navigation')); ?>
@@ -21,8 +25,8 @@
t('Clients')); ?>
- 0) {
- foreach($_['clients'] as $client) { ?>
+ 0) {
+ foreach ($_['clients'] as $client) { ?>
-
+
t("You don't have any clients, yet. Get started by clicking “Add client”.")); ?>
diff --git a/templates/index.php b/templates/index.php
index d07eba1..ea848a5 100644
--- a/templates/index.php
+++ b/templates/index.php
@@ -1,10 +1,15 @@
-inc( 'partials/navigation' ) ); ?>
+inc('partials/navigation')); ?>
@@ -14,7 +19,7 @@
- inc( 'partials/latest' ) ); ?>
+ inc('partials/latest')); ?>
diff --git a/templates/partials/latest.php b/templates/partials/latest.php
index 7c724e6..cf3b825 100644
--- a/templates/partials/latest.php
+++ b/templates/partials/latest.php
@@ -1,6 +1,9 @@
getURLGenerator();
- $l = \OC::$server->getL10N('timemanager');
+
+use \OCP\Util;
+
+$urlGenerator = \OC::$server->getURLGenerator();
+$l = Util::getL10N('timemanager');
?>
diff --git a/templates/partials/navigation.php b/templates/partials/navigation.php
index 8a6611c..86c6036 100644
--- a/templates/partials/navigation.php
+++ b/templates/partials/navigation.php
@@ -1,6 +1,9 @@
getURLGenerator();
-$l = \OC::$server->getL10N('timemanager');
+$l = Util::getL10N('timemanager');
?>
diff --git a/templates/partials/sharestatus.php b/templates/partials/sharestatus.php
index 26d1157..d74f2d4 100644
--- a/templates/partials/sharestatus.php
+++ b/templates/partials/sharestatus.php
@@ -1,13 +1,17 @@
getURLGenerator();
- $l = \OC::$server->getL10N('timemanager');
+
+use \OCP\Util;
+
+$urlGenerator = \OC::$server->getURLGenerator();
+$l = Util::getL10N('timemanager');
?>
sharees) && count($_['entity']->sharees) > 0) { ?>
·
diff --git a/templates/projects.php b/templates/projects.php
index 478d2ce..7a1132f 100644
--- a/templates/projects.php
+++ b/templates/projects.php
@@ -1,15 +1,19 @@
getURLGenerator();
-$l = \OC::$server->getL10N('timemanager');
+$l = Util::getL10N('timemanager');
?>
-inc( 'partials/navigation' ) ); ?>
+inc('partials/navigation')); ?>
-
+
@@ -33,14 +37,14 @@
getPostcode()); ?> getCity()); ?>
-
+
-
+
@@ -53,7 +57,7 @@
-
+
@@ -67,8 +71,8 @@
t('All projects')); ?>
0) {
- foreach ($_['projects'] as $project) {
- ?>
+ foreach ($_['projects'] as $project) {
+ ?>
-
+
t('Projects')); ?>
-
+
t('Select a client to show projects for')); ?>
t('Select a client first to show projects for this client.')); ?>
- 0) {
- foreach($_['projects'] as $project) {
- ?>
+ 0) {
+ foreach ($_['projects'] as $project) {
+ ?>
-
+
t("You don't have any projects, yet. Try adding one by clicking “Add project”.")); ?>
diff --git a/templates/reports.php b/templates/reports.php
index fa99c52..137fe7f 100644
--- a/templates/reports.php
+++ b/templates/reports.php
@@ -1,9 +1,12 @@
getURLGenerator();
-$l = \OC::$server->getL10N("timemanager");
+$l = Util::getL10N('timemanager');
?>
inc("partials/navigation")); ?>
diff --git a/templates/tasks.php b/templates/tasks.php
index 3946dfb..af8912f 100644
--- a/templates/tasks.php
+++ b/templates/tasks.php
@@ -1,15 +1,19 @@
getURLGenerator();
-$l = \OC::$server->getL10N('timemanager');
+$l = Util::getL10N('timemanager');
?>
-inc( 'partials/navigation' ) ); ?>
+inc('partials/navigation')); ?>
-
+
@@ -32,7 +36,7 @@
-
+
@@ -40,7 +44,7 @@
-
+
@@ -54,8 +58,8 @@
t('All tasks')); ?>
0) {
- foreach ($_['tasks'] as $task) {
- ?>
+ foreach ($_['tasks'] as $task) {
+ ?>
-
+
t('Tasks')); ?>
-
+
t('Select a project to show tasks for')); ?>
t('Select a project first to show the tasks for this project.')); ?>
- 0) {
- foreach($_['tasks'] as $task) { ?>
+ 0) {
+ foreach ($_['tasks'] as $task) { ?>
-
+
t("You don't have any tasks, yet. Try adding one by clicking “Add task”.")); ?>
diff --git a/templates/times.php b/templates/times.php
index 0ada80f..4f14f65 100644
--- a/templates/times.php
+++ b/templates/times.php
@@ -1,11 +1,15 @@
getURLGenerator();
-$l = \OC::$server->getL10N('timemanager');
+$l = Util::getL10N('timemanager');
?>
-inc( 'partials/navigation' ) ); ?>
+inc('partials/navigation')); ?>
@@ -36,7 +40,7 @@
-
+
@@ -70,20 +74,20 @@
@@ -183,7 +187,8 @@ class="tm_inline-hover-form"
-
+
t("You don't have any time entries, yet. Try adding one by clicking “Add time entry”.")); ?>
diff --git a/templates/tools.php b/templates/tools.php
index 935d33d..4e14f3a 100644
--- a/templates/tools.php
+++ b/templates/tools.php
@@ -1,9 +1,11 @@
getURLGenerator();
-$l = \OC::$server->getL10N("timemanager");
+use \OCP\Util;
+
+Util::addScript('timemanager', 'timemanager');
+style('timemanager', 'timemanager');
+
+$l = Util::getL10N('timemanager');
?>
inc("partials/navigation")); ?>