diff options
author | James Boisture <jboisture@jboisture-laptop.(none)> | 2010-07-29 18:05:01 (GMT) |
---|---|---|
committer | James Boisture <jboisture@jboisture-laptop.(none)> | 2010-07-29 18:05:01 (GMT) |
commit | 09e3eea7a72e9e2300b639f0356100c7b83b5dfb (patch) | |
tree | d3608997517daa0ae5f98e5bf5ba95c8e29520b9 /views/default/friends.html | |
parent | b817158f554f7b3342ecfe3ce24d04e91abed3c3 (diff) |
made a lot of major changes because it has been a long time since I commited last. There are many new features. Also added app.yaml file which should be placed in the web2py directly in order for the URL to work properly.
Diffstat (limited to 'views/default/friends.html')
-rw-r--r-- | views/default/friends.html | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/views/default/friends.html b/views/default/friends.html new file mode 100644 index 0000000..4dacbaa --- /dev/null +++ b/views/default/friends.html @@ -0,0 +1,27 @@ +{{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"> +{{for count in range(pages):}} + {{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}} +</ul> +</center> |