diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/base.html | 13 | ||||
-rw-r--r-- | templates/group_list.html | 20 |
2 files changed, 33 insertions, 0 deletions
diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..4d0a7ad --- /dev/null +++ b/templates/base.html @@ -0,0 +1,13 @@ +<!DOCTYPE html> +<html> + <head> + {% block head %} + <title>{% block title %}{% endblock %}</title> + {% endblock %} + </head> + + <body> + {% block body %} + {% endblock %} + </body> +</html> diff --git a/templates/group_list.html b/templates/group_list.html new file mode 100644 index 0000000..325eec5 --- /dev/null +++ b/templates/group_list.html @@ -0,0 +1,20 @@ +{% extends "base.html" %} +{% block title %}List of log groups{% endblock %} +{% block body %} + <table> + <tr> + <th>hostname</th> + <th>group name</th> + <th>provider</th> + <th>date</th> + </tr> + {% for group in groups %} + <tr> + <td>{{ group.hostname }}</td> + <td>{{ group.name }}</td> + <td>{{ group.provider }}</td> + <td>{{ group.date }}</td> + </tr> + {% endfor %} + </table> +{% endblock %} |