~edwargix/git.sr.ht

6c2fed4f956cbb9ccffd318b3cecc8d9540e61e4 — Drew DeVault 7 years ago ca25481
Minor tweaks to RSS support
3 files changed, 3 insertions(+), 3 deletions(-)

M gitsrht/blueprints/repo.py
M gitsrht/templates/log.html
M gitsrht/templates/refs.html
M gitsrht/blueprints/repo.py => gitsrht/blueprints/repo.py +1 -1
@@ 426,7 426,7 @@ def refs_rss(owner, repo):
    references = sorted(references, key=_ref_sort_key, reverse=True)[:20]

    repo_name = f"{repo.owner.canonical_name}/{repo.name}"
    title = f"{repo_name} log"
    title = f"{repo_name} refs"
    description = f"Git refs for {repo_name}"
    link = cfg("git.sr.ht", "origin") + url_for("repo.refs",
        owner=repo.owner.canonical_name,

M gitsrht/templates/log.html => gitsrht/templates/log.html +1 -1
@@ 15,7 15,7 @@
  <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
      {{ icon('rss', cls='sm') }} RSS
    </a>
  </li>
{% endblock %}

M gitsrht/templates/refs.html => gitsrht/templates/refs.html +1 -1
@@ 15,7 15,7 @@
  <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
      {{ icon('rss', cls='sm') }} RSS
    </a>
  </li>
{% endblock %}