diff options
| author | rubenwardy <rw@rubenwardy.com> | 2018-03-20 03:16:46 +0000 |
|---|---|---|
| committer | rubenwardy <rw@rubenwardy.com> | 2018-03-20 03:16:46 +0000 |
| commit | 775850bbba449dff3c85e3ea2eee607f948ebd7b (patch) | |
| tree | a6e8d97229cbad8196f324d418a03269d23e5a7c /app/templates | |
| parent | 5a3764f178192fed2d8f39379b0481d1ba5ac345 (diff) | |
| download | cheatdb-775850bbba449dff3c85e3ea2eee607f948ebd7b.tar.xz | |
Implement permissions properly
Diffstat (limited to 'app/templates')
| -rw-r--r-- | app/templates/package_details.html | 2 | ||||
| -rw-r--r-- | app/templates/packages.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/templates/package_details.html b/app/templates/package_details.html index 457673a..4a0f484 100644 --- a/app/templates/package_details.html +++ b/app/templates/package_details.html @@ -15,7 +15,7 @@ </tr> <tr> <td>Type</td> - <td>{{ package.type.getTitle() }}</td> + <td>{{ package.type.value }}</td> </tr> </table> diff --git a/app/templates/packages.html b/app/templates/packages.html index 269ac06..6ac01d8 100644 --- a/app/templates/packages.html +++ b/app/templates/packages.html @@ -7,7 +7,7 @@ {% block content %} <ul> {% for p in packages %} - <li><a href="{{ url_for('package_page', type=p.type.getTitle()|lower, author=p.author.username, name=p.name) }}"> + <li><a href="{{ p.getDetailsURL() }}"> {{ p.title }} by {{ p.author.display_name }} </a></li> {% else %} |
