~edwargix/git.sr.ht

d9f5a6d2b7ba66184154d2182154aecd3a56fa37 — Drew DeVault 2 years ago 75f3592
repo.html: update visibility UI per todo.sr.ht change
1 files changed, 16 insertions(+), 3 deletions(-)

M gitsrht/templates/repo.html
M gitsrht/templates/repo.html => gitsrht/templates/repo.html +16 -3
@@ 33,11 33,24 @@
      <a href="{{ url_for("public.user_index",
        username=owner.username) }}"
      >{{owner.canonical_name}}</a>/<wbr>{{repo.name}}
      {% if repo.visibility.value != 'public' %}
      <small class="text-muted">{{repo.visibility.value}}</small>
      {% endif %}
    </h2>
    <ul class="nav nav-tabs">
      {% if repo.visibility.value != "public" %}
      <li
        class="nav-item nav-text vis-{{repo.visibility.value.lower()}}"
        {% if repo.visibility.value == "unlisted" %}
        title="This repository is only visible to those who know the URL."
        {% elif repo.visibility.value == "private" %}
        title="This repository is only visible to those who were invited to view it."
        {% endif %}
      >
        {% if repo.visibility.value == "unlisted" %}
        Unlisted
        {% elif repo.visibility.value == "private" %}
        Private
        {% endif %}
      </li>
      {% endif %}
      <li class="nav-item">
        {{link(url_for("repo.summary",
          owner=repo.owner.canonical_name,