## favorites.html <%inherit file="base.html"/> <% import utils %>

pyAggr3g470r - News aggregator

pyAggr3g470r (source code)

Your favorites articles

%for feed in feeds: <% new_feed_section = True %> %for article in articles[feed["feed_id"]]: %if article["article_like"]: <% if new_feed_section: new_feed_section = False title = """

%s

\n""" % \ (feed["feed_id"], feed["site_link"], feed["feed_title"], feed["feed_link"], feed["feed_image"]) else: title = "" article_content = utils.clear_string(article["article_content"]) if article_content: description = " ".join(article_content[:500].split(' ')[:-1]) else: description = "No description." %> ${title} ${article["article_date"].strftime('%Y-%m-%d %H:%M')} - ${article["article_title"][:150]}${description}
%endif %endfor %endfor