diff --git a/pagure/templates/group_info.html b/pagure/templates/group_info.html index f3eabe5..579490f 100644 --- a/pagure/templates/group_info.html +++ b/pagure/templates/group_info.html @@ -3,98 +3,205 @@ {% block title %}Group {{ group.name }}{% endblock %} {% set tag = "groups" %} - +{% from "_browseheader.html" import browse_header %} {% block header %} - - {% endblock %} {% block content %} -
-

Group: {{ group.group_name }}

- {% if authenticated and (member or admin) %} - - {% endif %} +
+
+ {{browse_header(select=tag)}} +
+
+
+
+

+  {{ group.group_name }} + {% if authenticated and (member or admin) %} +
+ {{ form.csrf_token }} + +
+ {% endif %} +

+
+ created {{ group.created |humanize }} + by {{ group.creator.fullname }} ({{ group.creator.user }}) +
+
+ +
+
+
+
+
+
+ Projects in {{group.group_name}} {{ group.projects | length }} +
+
+ {% for repo in group.projects %} +
+ {% if repo.is_fork %} + {% set url = url_for('view_repo', username=repo.user.username, repo=repo.name) %} + {% else %} + {% set url = url_for('view_repo', repo=repo.name) %} + {% endif %} + + {% if repo.avatar_email %} + + {% else %} +
+ {% endif %} + +
+ {{ repo.name }} +
+
+
+ {% if repo.description %}{{ repo.description }}{%else%}no description{% endif %} +
+
+ {% else %} +

No projects found

+ {% endfor %} +
+
+
+
+
+
+ Group Members {{group.users|count}} + {% if authenticated and (member or admin) %} +
+ {% endif %} +
+
+ {% if authenticated and (member or admin) %} + + {{ form.csrf_token }} + +
+ {% endif %} - - - - - - - - - -
Created - {{ group.created |humanize }} -
By - - {{ group.creator.user | avatar(24) | safe }} - {{ group.creator.fullname }} ({{ group.creator.user }}) - -
+ {% for user in group.users %} +
+ + {{ user.user | avatar(28) | safe }} + {{ user.user }} + + {% if authenticated and user != group.creator and member %} +
+ {{ form.csrf_token }} + +
+ {% endif %} +
+ {% endfor %} +
+
+
+
+
+
+ +{% endblock %} -

Members

+{% block jscripts %} + {{ super() }} + + {% endblock %}