Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/views/default/friends.html
blob: d7a62882a2a76949253107ff3c0c62d77b2f7c48 (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
{{extend 'default/_base.html'}}
{{=username+"'s Friends List:"}}
<center>
<table>
{{for user in friends:}}
    <tr>
    <td>{{=user.username}}</td>
    <td><a href={{= 'profile?profile=' +str(user.username)}}>view profile</a></td>
    {{if auth.is_logged_in():}}
        {{if username == auth.user.username:}}
            <td><a href={{= 'remove_friends?user=' +str(user.username)}}>remove friend</a></td>
            {{pass}}
        {{pass}}
    </tr>
    {{pass}}
</table>
<ul id="navlist">
{{if page != 1:}}
    <li><a href = {{="friends.html?page="+str(1)}}> < </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 = {{="friends.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 = {{="friends.html?page="+str(pages)}}> < </a></li>
    {{pass}}
</ul>
</center>