-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WD-12132-create-decorator-to-restrict-views (#13952)
* new decorator works * added latest reservations to dashboard * wip, getting latest stuff * format-python
- Loading branch information
1 parent
9c3ac70
commit 1cc7940
Showing
6 changed files
with
84 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{% extends "credentials/base_cred.html" %} | ||
|
||
{% block title %}Canonical Credentials -- Dashboard{% endblock %} | ||
|
||
{% block meta_description %} | ||
The Canonical Ubuntu Essentials exams certify knowledge and verify skills in general Linux, | ||
Ubuntu Desktop, and Ubuntu Server topics. | ||
{% endblock meta_description %} | ||
|
||
{% block content %} | ||
|
||
<section class="p-strip is-paper"> | ||
<table> | ||
<thead> | ||
<tr> | ||
<th>Name</th> | ||
<th>Email</th> | ||
<th>Starts At</th> | ||
<th>Exam Name</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for reservation in latest_reservations %} | ||
<tr> | ||
<td>{{ reservation["user"]["full_name"] }}</td> | ||
<td>{{ reservation["user"]["email"] }}</td> | ||
<td>{{ reservation["starts_at"] }}</td> | ||
<td>{{ reservation["ability_screen"]["display_name"] }}</td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
</section> | ||
|
||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters