forked from Archives/Athou_commafeed
fix #28
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user