summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-07-12 10:48:58 -0400
committerDrew DeVault <sir@cmpwn.com>2019-07-12 10:48:58 -0400
commita852f7178709dfcce1833e148ad78a81b9c96cad (patch)
tree13776b9f92826ac8d3a685d7107da57097739ca4
parentefd00ff61c924eeba492def943a1d455ca2336b4 (diff)
Show indicator if repo is unlisted/private
-rw-r--r--gitsrht/templates/repo.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/gitsrht/templates/repo.html b/gitsrht/templates/repo.html
index aa472b9..f4d4a2d 100644
--- a/gitsrht/templates/repo.html
+++ b/gitsrht/templates/repo.html
@@ -15,6 +15,9 @@
<a href="{{ url_for("public.user_index",
username=owner.username) }}"
>{{owner.canonical_name}}</a>/{{repo.name}}
+ {% if repo.visibility.value != 'public' %}
+ <small class="text-muted">{{repo.visibility.value}}</small>
+ {% endif %}
</h2>
{% block tabs %}
{% macro link(path, title) %}