Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/views/default/admin.html
blob: 6598a4600aa9a21e3c0372a84ff870cc4df330fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{{extend 'default/_base.html'}}
<br><br>
<center>
<table><tr>
<td>Username</td>
<td>Email</td>
<td>Delete User</td>
<td>Admin Status</td>
{{for user in users:}}
    <tr>
    <td><a href={{= 'profile?profile=' +str(user.username)}}>{{=user.username}}</a></td>
    <td>{{=user.email}}</td>
    <td><a href={{="delete_user?user="+user.username+";page="+str(page)}}>Delete</a></td>
    {{if auth.has_membership('admin', user.id):}}
        <td>Admin (<a href={{="remove_admin?user="+str(user.id)+";page="+str(page)}}>Remove Admin</a>)</td>
        {{pass}}
    {{if not auth.has_membership('admin',user.id):}}
        <td><a href={{='make_admin?user='+str(user.id)+';page='+str(page)}}>Make Admin</a></td>
        {{pass}}
    </tr>
    {{pass}}
</table>
<ul id="navlist">
{{if page != 1:}}
    <li><a href = {{="admin.html?page="+str(0)}}> < </a></li>
    {{pass}}
{{if page > 5:}}<li>...</li>{{pass}}
{{for count in range(pages):}}
    {{if count+1 < page+5 and count+1 > page-5:}} 
        {{if count+1 == page:}}
            <li>{{=str(page)}}</li>
            {{pass}}
        {{if count+1 != page:}}
            <li><a href = {{="admin.html?page="+str(count+1)}}>{{ = str(count+1)}}</a></li>
            {{pass}}
        {{pass}}
    {{pass}}
{{if page+5 < pages:}}<li>...</li>{{pass}}
{{if page != pages:}}
    <li><a href = {{="admin.html?page="+str(pages)}}> > </a></li>
    {{pass}}
</ul>
</center>