From 1f98d945110b7cd467811e784eead280edcdee9e Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Sun, 10 Jan 2016 15:33:52 +0100 Subject: One URL for public/member group view. The group is now always reachable with a consistent URL regardless of membership of the current_user. If the user is no member the public view is rendered with the possibility to join the group. --- templates/browse.html | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 templates/browse.html (limited to 'templates/browse.html') diff --git a/templates/browse.html b/templates/browse.html new file mode 100644 index 0000000..34bd10d --- /dev/null +++ b/templates/browse.html @@ -0,0 +1,22 @@ +{% extends "layout.html" %} +{% from "_pagination.html" import render_pagination %} + +{% block head %}Public groups{% endblock %} + +{% block content %} +
+
+

Public groups

+
+ +
+ {% for group in groups %} + {{group}} + {% endfor %} +
+ + +
+{% endblock %} -- cgit v1.2.3-1-g7c22