From f49e024d0c8cfb464b0fda7e7877efbbf309fe6c Mon Sep 17 00:00:00 2001 From: Vivek Anand Date: Sep 21 2017 10:26:39 +0000 Subject: read only repo: front end banner Signed-off-by: Vivek Anand --- diff --git a/pagure/static/pagure.css b/pagure/static/pagure.css index 6542064..3033695 100644 --- a/pagure/static/pagure.css +++ b/pagure/static/pagure.css @@ -23,6 +23,12 @@ html border-bottom:1px solid #DDD; } +.repo-header-read-only +{ + background:#ffc0cb; + border-bottom:1px solid #DDD; +} + .issue_comment table, .readme table, .card .m-a-2 table diff --git a/pagure/templates/repo_master.html b/pagure/templates/repo_master.html index 7377f81..37331bb 100644 --- a/pagure/templates/repo_master.html +++ b/pagure/templates/repo_master.html @@ -18,7 +18,11 @@ {% endif %} {% block content %} +{% if repo.read_only == true %} +
+{% else %}
+{% endif %}

@@ -26,6 +30,10 @@ {% endif %} + {% if repo.read_only == true %} + + {% endif %} {% if repo.is_fork -%}