~edwargix/git.sr.ht

ca25481fc45e89b9bb32932c556a9c8f63caa19b — Ivan Habunek 7 years ago e1ec176
Add links to RSS feeds
3 files changed, 19 insertions(+), 0 deletions(-)

M gitsrht/templates/log.html
M gitsrht/templates/refs.html
M gitsrht/templates/repo.html
M gitsrht/templates/log.html => gitsrht/templates/log.html +9 -0
@@ 11,6 11,15 @@
    href="{{ root }}{{ repo|log_rss_url(ref=ref) }}">
{% endblock %}

{% block tabs_extra %}
  <li class="flex-grow-1 d-none d-sm-block"></li>
  <li class="nav-item">
    <a class="nav-link active" href="{{ repo|log_rss_url(ref=ref) }}">
      {{ icon('rss') }} RSS
    </a>
  </li>
{% endblock %}

{% block content %}
<div class="container">
  <div class="row">

M gitsrht/templates/refs.html => gitsrht/templates/refs.html +9 -0
@@ 11,6 11,15 @@
    href="{{ root }}{{ repo|refs_rss_url }}">
{% endblock %}

{% block tabs_extra %}
  <li class="flex-grow-1 d-none d-sm-block"></li>
  <li class="nav-item">
    <a class="nav-link active" href="{{ repo|refs_rss_url }}">
      {{ icon('rss') }} RSS
    </a>
  </li>
{% endblock %}

{% block content %}
<div class="container">
  <div class="row">

M gitsrht/templates/repo.html => gitsrht/templates/repo.html +1 -0
@@ 42,6 42,7 @@
            repo_name=repo.name), "settings")}}
        </li>
        {% endif %}
        {% block tabs_extra %}{% endblock %}
      </ul>
      {% endblock %}
    </div>