summaryrefslogtreecommitdiffstats
path: root/templates/browse.html
diff options
context:
space:
mode:
authorAlexander Sulfrian <alex@spline.inf.fu-berlin.de>2016-01-10 15:33:52 +0100
committerAlexander Sulfrian <alex@spline.inf.fu-berlin.de>2016-01-10 17:37:01 +0100
commit1f98d945110b7cd467811e784eead280edcdee9e (patch)
tree75c30a12b06e96553783379b4cd38a533dbc23f3 /templates/browse.html
parent1ec270de4390f215f874e8fad23736ce978c1bbd (diff)
downloadpadlite-teams-1f98d945110b7cd467811e784eead280edcdee9e.tar.gz
padlite-teams-1f98d945110b7cd467811e784eead280edcdee9e.tar.bz2
padlite-teams-1f98d945110b7cd467811e784eead280edcdee9e.zip
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.
Diffstat (limited to 'templates/browse.html')
-rw-r--r--templates/browse.html22
1 files changed, 22 insertions, 0 deletions
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 %}
+<div class="panel panel-default">
+ <div class="panel-heading">
+ <h3 class="panel-title">Public groups</h3>
+ </div>
+
+ <div class="list-group">
+ {% for group in groups %}
+ <a class="list-group-item" href="{{ url_for('group', group_name=group.name) }}">{{group}}</a>
+ {% endfor %}
+ </div>
+
+ <div class="panel-footer text-center">
+ {{ render_pagination(pagination) }}
+ </div>
+</div>
+{% endblock %}