summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/main.php4
-rw-r--r--templates/part.items.php2
2 files changed, 4 insertions, 2 deletions
diff --git a/templates/main.php b/templates/main.php
index e6c964c74..376132833 100644
--- a/templates/main.php
+++ b/templates/main.php
@@ -1,11 +1,13 @@
<?php
+\OCP\Util::addScript('news', 'vendor/momentjs/moment');
+\OCP\Util::addScript('news', 'vendor/momentjs/langs');
\OCP\Util::addScript('appframework', 'vendor/angular/angular');
\OCP\Util::addScript('appframework', 'public/app');
\OCP\Util::addScript('news', 'vendor/md5js/md5');
\OCP\Util::addScript('news', 'vendor/angular-ui/angular-ui');
-\OCP\Util::addScript('news', 'vendor/momentjs/moment');
+
\OCP\Util::addScript('news', 'public/app');
\OCP\Util::addStyle('news', 'addnew');
diff --git a/templates/part.items.php b/templates/part.items.php
index 284a3e9a3..7fef5b1cc 100644
--- a/templates/part.items.php
+++ b/templates/part.items.php
@@ -5,7 +5,7 @@
data-id="{{ item.id }}"
data-feed="{{ item.feedId }}">
<h2 class="item_date">
- <time class="timeago" datetime="">{{ item.getRelativeDate() }}</time>
+ <time class="timeago" datetime="">{{ getRelativeDate(item.pubDate) }}</time>
</h2>
<div class="utils">