diff options
author | Ivan Habunek <ivan@habunek.com> | 2018-11-18 13:25:06 +0100 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2018-11-18 08:54:10 -0500 |
commit | ca25481fc45e89b9bb32932c556a9c8f63caa19b (patch) | |
tree | 4bf181ab51bd670a8922a84b1e3d43bc1f7033b1 | |
parent | e1ec176f46314eea695b41c8cb422be146c6b46f (diff) |
Add links to RSS feeds
-rw-r--r-- | gitsrht/templates/log.html | 9 | ||||
-rw-r--r-- | gitsrht/templates/refs.html | 9 | ||||
-rw-r--r-- | gitsrht/templates/repo.html | 1 |
3 files changed, 19 insertions, 0 deletions
diff --git a/gitsrht/templates/log.html b/gitsrht/templates/log.html index 0f1e3fc..fb19bd3 100644 --- a/gitsrht/templates/log.html +++ b/gitsrht/templates/log.html @@ -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"> diff --git a/gitsrht/templates/refs.html b/gitsrht/templates/refs.html index 9fbea6d..d496d68 100644 --- a/gitsrht/templates/refs.html +++ b/gitsrht/templates/refs.html @@ -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"> diff --git a/gitsrht/templates/repo.html b/gitsrht/templates/repo.html index 21575ab..d6b52ec 100644 --- a/gitsrht/templates/repo.html +++ b/gitsrht/templates/repo.html @@ -42,6 +42,7 @@ repo_name=repo.name), "settings")}} </li> {% endif %} + {% block tabs_extra %}{% endblock %} </ul> {% endblock %} </div> |