{% extends "web/base.tmpl.html" %}
{% load humanize %}
{% block main_contents %}
<h2>My Feeds</h2>
<ul class="collection">
  {% for userfeed in object_list %}
  <li class="collection-item avatar">
    {% if userfeed.feed.site.favicon %}
    <img class="circle" src="{{ userfeed.feed.site.favicon.url }}" />
    {% endif %}
    <span class="title">{{ userfeed.feed.title }}</span>
    <p>Last checked: {{ userfeed.feed.last_checked|naturaltime }}</p>
    <a href="{% url 'user-feed' userfeed.id %}" class="secondary-content">
      <i class="material-icons">rss_feed</i>
    </a>
  </li>
  {% empty %}
  <li class="empty">No feed registered</li>
  {% endfor %}
</ul>
{% endblock %}
