diff options
Diffstat (limited to 'backend/admin/templates/problems.html')
| -rw-r--r-- | backend/admin/templates/problems.html | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/backend/admin/templates/problems.html b/backend/admin/templates/problems.html new file mode 100644 index 0000000..120789e --- /dev/null +++ b/backend/admin/templates/problems.html @@ -0,0 +1,20 @@ +{{ template "base.html" . }} + +{{ define "breadcrumb" }} +<a href="{{ .BasePath }}admin/dashboard">Dashboard</a> +{{ end }} + +{{ define "content" }} +<div> + <a href="{{ .BasePath }}admin/problems/new">Create New Problem</a> +</div> +<ul> + {{ range .Problems }} + <li> + <a href="{{ $.BasePath }}admin/problems/{{ .ProblemID }}"> + {{ .Title }} (id={{ .ProblemID }} language={{ .Language }}) + </a> + </li> + {{ end }} +</ul> +{{ end }} |
