summaryrefslogtreecommitdiffstats
path: root/templates/part.items.php
diff options
context:
space:
mode:
authorAlessandro Cosentino <cosenal@gmail.com>2012-10-28 10:57:35 -0400
committerAlessandro Cosentino <cosenal@gmail.com>2012-10-28 10:57:35 -0400
commita7f7f04052ded38c94e15a4e94645f6ab2b39941 (patch)
tree0a2c06adb471d5c18535c308f7991b4c9675f876 /templates/part.items.php
parentff6bee25f0468d291616be9235ae556457d7fc0d (diff)
sharing items in the News app
Diffstat (limited to 'templates/part.items.php')
-rw-r--r--templates/part.items.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/templates/part.items.php b/templates/part.items.php
index 70bdb4022..58c7459da 100644
--- a/templates/part.items.php
+++ b/templates/part.items.php
@@ -51,11 +51,15 @@ foreach($items as $item) {
echo '<div class="body">' . $item->getBody() . '</div>';
+ echo '<div><a class="share" data-item-type="news_item" data-item="' . $item->getId() . '" title="' . $l->t('Share') .
+ '" data-possible-permissions="' . (OCP\Share::PERMISSION_READ | OCP\Share::PERMISSION_SHARE) . '"/></div>';
+
echo '<div class="bottom_utils">';
- echo '<ul class="secondary_item_utils">';
+ echo '<ul class="secondary_item_utils">';
echo '<li class="keep_unread">' . $l->t('Keep unread') . '<input type="checkbox" /></li>';
echo '</ul>';
echo '</div>';
+
echo '</li>';