summaryrefslogtreecommitdiffstats
path: root/templates/part.items.php
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2012-08-10 20:44:45 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2012-08-10 20:44:45 +0200
commit748afb98f2a0cd485df6346c97a179d45d178209 (patch)
tree621723a98adb554a795fafe5a52f89fa275136ec /templates/part.items.php
parent837438ab0d9a2f65983514778510550b7ecc83ec (diff)
moved the marking of feeds into the news.js and call it on mouseenter, always expand the description of feeds, improved style of the news items
Diffstat (limited to 'templates/part.items.php')
-rw-r--r--templates/part.items.php22
1 files changed, 11 insertions, 11 deletions
diff --git a/templates/part.items.php b/templates/part.items.php
index c1619085e..c2b9b2889 100644
--- a/templates/part.items.php
+++ b/templates/part.items.php
@@ -6,18 +6,18 @@ $itemmapper = new OC_News_ItemMapper();
$items = $itemmapper->findAll($feedid);
-echo '<ul class="accordion">';
+echo '<ul>';
foreach($items as $item) {
- $title = $item->getTitle();
- echo '<li>';
- echo '<div data-id="' . $item->getId() . '"';
- if ($item->isRead()) {
- echo ' class="title_read">';
+ if($item->isRead()){
+ $readClass = "title_read";
+ } else {
+ $readClass = "title_unread";
}
- else {
- echo ' class="title_unread" onClick="News.Feed.markItem(' . $item->getId() . ',' . $feedid . ')">';
- }
- echo $title . '</div><div class="body">' . $item->getBody() . '</div>';
+
+ echo '<li class="news_item ' . $readClass .'" data-id="' . $item->getId() . '" data-feedid="' . $feedid . '">';
+ echo '<h1><a href="' . $item->getUrl() . '">' . $item->getTitle() . '</a></h1>';
+ echo '<div class="body">' . $item->getBody() . '</div>';
echo '</li>';
-}
+
+ }
echo '</ul>';