[gentoo-commits] proj/grumpy:master commit in: frontend/templates/

2016-12-18 Thread Mart Raudsepp
commit: bc03898a8c3c3fc730c8477dd35deb681cc16866
Author: Mart Raudsepp  gentoo  org>
AuthorDate: Sun Dec 18 21:37:18 2016 +
Commit: Mart Raudsepp  gentoo  org>
CommitDate: Sun Dec 18 21:37:36 2016 +
URL:https://gitweb.gentoo.org/proj/grumpy.git/commit/?id=bc03898a

frontend: Hide @gentoo.org for developers listing in /setup

 frontend/templates/setup.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/frontend/templates/setup.html b/frontend/templates/setup.html
index 6ea857a..c7a2f21 100644
--- a/frontend/templates/setup.html
+++ b/frontend/templates/setup.html
@@ -16,7 +16,7 @@
   {%- set maintainer = mapping[item.data] -%}
   
 {{ item }}
-{{ maintainer.email }}
+{{ maintainer.email[0:-11] }}{# 11 is 
len('@gentoo.org'), which this is guaranteed to end with in this loop #}
 {{ maintainer.name|default('', True) }}
   
   {%- endfor %}



[gentoo-commits] proj/grumpy:master commit in: /, frontend/templates/

2016-12-18 Thread Mart Raudsepp
commit: c0c323a6f79529fe475aa08364066e1f3e691647
Author: Mart Raudsepp  gentoo  org>
AuthorDate: Sun Dec 18 21:28:12 2016 +
Commit: Mart Raudsepp  gentoo  org>
CommitDate: Sun Dec 18 21:29:07 2016 +
URL:https://gitweb.gentoo.org/proj/grumpy.git/commit/?id=c0c323a6

frontend: List proxy maintainers in a separate table for /setup

Also display an empty cell instead of "None" when we don't have a name in the 
DB.
Style the submit button a bit.
Commit a manage.py TODO comment that's collecting dust.

 frontend/templates/setup.html | 30 +-
 manage.py |  2 ++
 2 files changed, 27 insertions(+), 5 deletions(-)

diff --git a/frontend/templates/setup.html b/frontend/templates/setup.html
index de1cbc8..6ea857a 100644
--- a/frontend/templates/setup.html
+++ b/frontend/templates/setup.html
@@ -7,6 +7,26 @@
 
   
 
+  Known developers
+
+  
+  
+
+  {% for item in form.maintainers if not mapping[item.data].is_project and 
mapping[item.data].email.endswith('@gentoo.org') -%}
+  {%- set maintainer = mapping[item.data] -%}
+  
+{{ item }}
+{{ maintainer.email }}
+{{ maintainer.name|default('', True) }}
+  
+  {%- endfor %}
+
+  
+
+
+
+  
+
   Known projects
 
   
@@ -17,7 +37,7 @@
   
 {{ item }}
 {{ maintainer.email }}
-{{ maintainer.name }}
+{{ maintainer.name|default('', True) }}
   
   {%- endfor %}
 
@@ -27,24 +47,24 @@
 
   
 
-  Known developers
+  Known proxy maintainers
 
   
   
 
-  {% for item in form.maintainers if not mapping[item.data].is_project -%}
+  {% for item in form.maintainers if not mapping[item.data].is_project and 
not mapping[item.data].email.endswith('@gentoo.org') -%}
   {%- set maintainer = mapping[item.data] -%}
   
 {{ item }}
 {{ maintainer.email }}
-{{ maintainer.name }}
+{{ maintainer.name|default('', True) }}
   
   {%- endfor %}
 
   
 
 
-
+
 
 
 

diff --git a/manage.py b/manage.py
index a31b96c..8df47ee 100755
--- a/manage.py
+++ b/manage.py
@@ -6,6 +6,8 @@ from flask_script import Manager, Shell
 from backend import app, db
 from backend.lib import sync
 
+# TODO: Replace this with flask 0.11 "flask" CLI and the extra commands 
support via click therein - http://flask.pocoo.org/docs/0.11/cli/
+# TODO: This would then allow FLASK_DEBUG=1 automatically reloading the server 
on code changes when launched with "flask run"
 
 manager = Manager(app)
 



[gentoo-commits] proj/grumpy:master commit in: frontend/templates/

2016-12-03 Thread Mart Raudsepp
commit: d69d500d50aa8b22247bb341a9f82c5cde5347ae
Author: Mart Raudsepp  gentoo  org>
AuthorDate: Sun Dec  4 07:18:12 2016 +
Commit: Mart Raudsepp  gentoo  org>
CommitDate: Sun Dec  4 07:18:12 2016 +
URL:https://gitweb.gentoo.org/proj/grumpy.git/commit/?id=d69d500d

frontend: Add meta charset=utf-8 head tag

 frontend/templates/base.html | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/frontend/templates/base.html b/frontend/templates/base.html
index 62288f5..5a50f03 100644
--- a/frontend/templates/base.html
+++ b/frontend/templates/base.html
@@ -2,9 +2,10 @@
 
 
   {% block title %}Grumpy{% endblock %}
+  
+  
   https://assets.gentoo.org/tyrian/bootstrap.min.css"/>
   https://assets.gentoo.org/tyrian/tyrian.min.css"/>
-