aboutsummaryrefslogtreecommitdiff
path: root/source/static/templates/articles.html
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2013-09-14 10:44:59 +0200
committerCédric Bonhomme <kimble.mandel@gmail.com>2013-09-14 10:44:59 +0200
commit79dfa104623d51b7e0bdb411eadceda1747d0a20 (patch)
tree1542f86ee36a5606af0e9df70fea4e9f44b2060f /source/static/templates/articles.html
parentThe logo of the feed has been added to the feed management page (/feed). (diff)
downloadnewspipe-79dfa104623d51b7e0bdb411eadceda1747d0a20.tar.gz
newspipe-79dfa104623d51b7e0bdb411eadceda1747d0a20.tar.bz2
newspipe-79dfa104623d51b7e0bdb411eadceda1747d0a20.zip
Templates has been removed to the upper folder.
Diffstat (limited to 'source/static/templates/articles.html')
-rw-r--r--source/static/templates/articles.html43
1 files changed, 0 insertions, 43 deletions
diff --git a/source/static/templates/articles.html b/source/static/templates/articles.html
deleted file mode 100644
index d7fcc4d5..00000000
--- a/source/static/templates/articles.html
+++ /dev/null
@@ -1,43 +0,0 @@
-## articles.html
-<%inherit file="base.html"/>
-<%
-import utils
-%>
-<div class="right inner">
- <a href="/mark_as_read/Feed:${feed['feed_id']}">Mark all articles from this feed as read</a>
- <br />
- <form method=get action="/search/Feed${feed['feed_id']}">
- <input type="search" name="query" value="" placeholder="Search this feed" maxlength=2048 autocomplete="on">
- </form>
- <hr />
-</div>
-
-<div class="left inner">
- <h1>Articles of the feed <i><a href="/feed/${feed['feed_id']}">${feed['feed_title']}</a></i></h1>
- %if articles.count() == 0:
- <p>No articles yet.</p>
- %else:
- <br />
- %endif
- %for article in articles:
- <%
- if article["article_readed"] == False:
- not_read_begin, not_read_end = "<b>", "</b>"
- else:
- not_read_begin, not_read_end = "", ""
-
- if article["article_like"] == True:
- like = """<img src="/static/img/heart.png" title="I like this article!" />"""
- else:
- like = ""
-
- article_content = utils.clear_string(article["article_content"])
- if article_content:
- description = " ".join(article_content[:500].split(' ')[:-1])
- else:
- description = "No description."
- %>
- ${article["article_date"].strftime('%Y-%m-%d %H:%M')} - <a class="tooltip" href="/article/${feed['feed_id']}:${article['article_id']}" rel="noreferrer" target="_blank">${not_read_begin}${article["article_title"][:150]}${not_read_end}<span class="classic">${description}</span></a> ${like}
- <br />
- %endfor
- <h4><a href="/">All feeds</a></h4>
bgstack15