simple-web-app

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

feed.html (708B)


      1 <div class="feed">
      2   {% if !tags.is_empty() %}
      3   <div class="feed-tags">
      4     {% for tag in tags %}
      5     {% match tag.name %}
      6     {% when Some with (name) %}
      7     <a href="/tag/{{ name }}" class="tag-link">{{ name }}</a>
      8     {% when None %}
      9     {% endmatch %}
     10     {% endfor %}
     11   </div>
     12   {% endif %}
     13 
     14   <ol class="story-list" start="{{ page * 30 + 1 }}">
     15     {% for story in stories %}
     16     {% include "story_row.html" %}
     17     {% endfor %}
     18   </ol>
     19 
     20   {% if !reached_end %}
     21   <div class="more-link">
     22     <a href="{% if sort == "hot" %}/{% else %}/{{ sort }}{% endif %}?page={{ page + 1 }}{% match tag_id %}{% when Some with (id) %}&tag={{ id }}{% when None %}{% endmatch %}">More</a>
     23   </div>
     24   {% endif %}
     25 </div>