Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1080)

Unified Diff: MoinMoin/apps/admin/templates/admin/user_acl_report.html

Issue 101630045: Added userwise acl view (Closed)
Patch Set: Minor correction Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | MoinMoin/apps/admin/templates/admin/userbrowser.html » ('j') | MoinMoin/apps/admin/views.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: MoinMoin/apps/admin/templates/admin/user_acl_report.html
===================================================================
new file mode 100644
--- /dev/null
+++ b/MoinMoin/apps/admin/templates/admin/user_acl_report.html
@@ -0,0 +1,30 @@
+{% extends theme("layout.html") %}
+{% import "utils.html" as utils %}
+{% block content %}
+ <h1>{{ _("User ACL Report") }}</h1>
+ <h2>{{ _("User Names") }}: {{ user_names|join(', ') }}</h2>
+ <table class="table table-hover tablesorter tablesorter-default moin-sortable" data-sortlist="[[0,0],[1,0]]">
+ <thead>
+ <tr>
+ <th>{{ _("Item Names") }}</th>
+ <th>{{ _("read") }}</th>
+ <th>{{ _("write") }}</th>
+ <th>{{ _("create") }}</th>
+ <th>{{ _("destroy") }}</th>
+ <th>{{ _("admin") }}</th>
+ </tr>
+ </thead>
+ <tbody>
+ {% for item in itemwise_acl %}
+ <tr>
+ <td><a href="{{ url_for('frontend.modify_item', item_name=item['fqname']) }}">{% if item['name'] %}{{ item['name']|join(', ') }}{% else %}Item Id: {{ item['itemid'] }}{% endif %}</a></td>
+ <td>{% if item['read'] %}{{ _("read") }}{% endif %}</td>
+ <td>{% if item['write'] %}{{ _("write") }}{% endif %}</td>
+ <td>{% if item['create'] %}{{ _("create") }}{% endif %}</td>
+ <td>{% if item['destroy'] %}{{ _("destroy") }}{% endif %}</td>
+ <td>{% if item['admin'] %}{{ _("admin") }}{% endif %}</td>
+ </tr>
+ {% endfor %}
+ </tbody>
+ </table>
+{% endblock %}
« no previous file with comments | « no previous file | MoinMoin/apps/admin/templates/admin/userbrowser.html » ('j') | MoinMoin/apps/admin/views.py » ('J')

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b