This commit is contained in:
Athou
2013-04-09 12:03:03 +02:00
parent 71499b5ed0
commit 6bd3848be1
5 changed files with 18 additions and 4 deletions

View File

@@ -12,6 +12,7 @@ public class Entry implements Serializable {
private Date date;
private String feedId;
private String feedName;
private String feedUrl;
private String url;
private boolean read;
private boolean starred;
@@ -88,4 +89,12 @@ public class Entry implements Serializable {
this.starred = starred;
}
public String getFeedUrl() {
return feedUrl;
}
public void setFeedUrl(String feedUrl) {
this.feedUrl = feedUrl;
}
}

View File

@@ -112,6 +112,7 @@ public class EntriesREST extends AbstractREST {
entry.setFeedName(status.getSubscription().getTitle());
entry.setFeedId(String.valueOf(status.getSubscription().getId()));
entry.setFeedUrl(status.getSubscription().getFeed().getLink());
return entry;
}

View File

@@ -101,6 +101,7 @@
white-space: nowrap;
position: absolute;
width: 145px;
text-overflow: ellipsis;
}
#feed-accordion .entry-heading .entry-name {
@@ -147,7 +148,7 @@
border-top: 1px solid #ebebeb;
}
#feed-accordion .entry-buttons label{
#feed-accordion .entry-buttons label {
margin-bottom: 0px
}

View File

@@ -8,7 +8,7 @@ module.directive('favicon', function() {
},
replace : true,
template : '<img ng-src="favicon?url={{url}}" width="16" height="16"></img>'
}
};
});
module.directive('ngBlur', function() {

View File

@@ -9,9 +9,12 @@
<div ng-repeat="entry in entries" class="entry" scroll-to="isOpen && current == entry" scroll-to-offset="-58">
<a href="{{entry.url}}" target="_blank" class="entry-heading" ng-click="entryClicked(entry, $event)"
ng-class="{open: current == entry, closed: current != entry}">
<span ui-if="keywords || selectedType == 'category'" class="feed-name">{{entry.feedName}}</span>
<span class="feed-name">
<favicon url="entry.feedUrl" />
{{entry.feedName}}
</span>
<span class="entry-date">{{entry.date}}</span>
<span class="entry-name" ng-class="{unread: entry.read == false, shrink: keywords || selectedType == 'category'}" ng-bind-html-unsafe="entry.title"></span>
<span class="entry-name" ng-class="{unread: entry.read == false, shrink: true}" ng-bind-html-unsafe="entry.title"></span>
</a>
<div class="entry-body" ui-if="isOpen && current == entry">