diff options
author | rubenwardy <rw@rubenwardy.com> | 2018-03-21 20:16:21 +0000 |
---|---|---|
committer | rubenwardy <rw@rubenwardy.com> | 2018-03-21 20:16:21 +0000 |
commit | dc31a98416bd44e5f4007725f7af26de4f270ede (patch) | |
tree | ed696cc8cdbbae12ea64634e2c5c5258e0af8453 | |
parent | 87d7b142834a78ffa08e1feecfe59192aa89475b (diff) | |
download | cheatdb-dc31a98416bd44e5f4007725f7af26de4f270ede.tar.xz |
Add list of packages to profile
-rw-r--r-- | app/templates/users/user_profile_page.html | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/app/templates/users/user_profile_page.html b/app/templates/users/user_profile_page.html index c98afb7..faa6e0c 100644 --- a/app/templates/users/user_profile_page.html +++ b/app/templates/users/user_profile_page.html @@ -63,6 +63,19 @@ </table> </div> +<div class="box box_grey"> + <h2>Packages</h2> + <ul> + {% for p in user.packages %} + <li><a href="{{ p.getDetailsURL() }}"> + {{ p.title }} by {{ p.author.display_name }} + </a></li> + {% else %} + <li><i>No packages available</i></ul> + {% endfor %} + </ul> +</div> + {% if form %} {% from "macros/forms.html" import render_field, render_submit_field %} <form class="box box_grey" action="" method="POST" class="form" role="form"> |