forked from jeena/FeedTheMonkey
added star to content
This commit is contained in:
parent
6deba3d45e
commit
5a2a3cdf28
1 changed files with 6 additions and 1 deletions
|
@ -265,6 +265,7 @@ class Content(QtGui.QWidget):
|
||||||
article["marked"] = not article["marked"]
|
article["marked"] = not article["marked"]
|
||||||
self.app.tinyTinyRSS.setArticleStarred(article["id"], article["marked"])
|
self.app.tinyTinyRSS.setArticleStarred(article["id"], article["marked"])
|
||||||
self.app.list.setStarred(self.index, article["marked"])
|
self.app.list.setStarred(self.index, article["marked"])
|
||||||
|
self.setArticle(article)
|
||||||
|
|
||||||
def _reload(self):
|
def _reload(self):
|
||||||
self.unread_articles = self.app.tinyTinyRSS.getUnreadFeeds()
|
self.unread_articles = self.app.tinyTinyRSS.getUnreadFeeds()
|
||||||
|
@ -365,6 +366,7 @@ class Content(QtGui.QWidget):
|
||||||
$("title").href = article.link;
|
$("title").href = article.link;
|
||||||
$("title").title = article.link;
|
$("title").title = article.link;
|
||||||
$("feed_title").innerHTML = article.feed_title;
|
$("feed_title").innerHTML = article.feed_title;
|
||||||
|
$("title").className = article.marked ? "starred" : "";
|
||||||
$("author").innerHTML = "";
|
$("author").innerHTML = "";
|
||||||
if(article.author && article.author.length > 0)
|
if(article.author && article.author.length > 0)
|
||||||
$("author").innerHTML = "– " + article.author
|
$("author").innerHTML = "– " + article.author
|
||||||
|
@ -390,6 +392,9 @@ class Content(QtGui.QWidget):
|
||||||
border-bottom: 1px solid #aaa;
|
border-bottom: 1px solid #aaa;
|
||||||
padding-bottom: 1em;
|
padding-bottom: 1em;
|
||||||
}
|
}
|
||||||
|
.starred:after {
|
||||||
|
content: "*";
|
||||||
|
}
|
||||||
header p {
|
header p {
|
||||||
color: #aaa;
|
color: #aaa;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
@ -417,7 +422,7 @@ class Content(QtGui.QWidget):
|
||||||
<article id="article"></article>
|
<article id="article"></article>
|
||||||
</body>
|
</body>
|
||||||
</html>"""
|
</html>"""
|
||||||
return html # string.replace(html, "<body", "<body class='" + _platform + "'")
|
return html
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue