diff options
Diffstat (limited to 'data')
| -rw-r--r-- | data/templates/base.htm | 1 | ||||
| -rw-r--r-- | data/templates/index.htm | 12 | ||||
| -rw-r--r-- | data/templates/repo-sidebar-list.htm | 7 |
3 files changed, 20 insertions, 0 deletions
diff --git a/data/templates/base.htm b/data/templates/base.htm index 8c6b4b0..1fbde4d 100644 --- a/data/templates/base.htm +++ b/data/templates/base.htm @@ -2,6 +2,7 @@ <!DOCTYPE html> <html> <head> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" href="{{css}}"/> <link rel="stylesheet" href="/phorkie.css" /> <title>{% block title %}{% endblock %} - {{title}}</title> diff --git a/data/templates/index.htm b/data/templates/index.htm index 05c4c05..df1977a 100644 --- a/data/templates/index.htm +++ b/data/templates/index.htm @@ -26,3 +26,15 @@ $(document).ready(function() { }); </script> {% endblock %} + + +{% block sidebar %} + {% if recents.results %} + <h3>Recently created</h3> + <ul> + {% for repo in recents.repos %} + {% include 'repo-sidebar-list.htm' %} + {% endfor %} + </ul> + {% endif %} +{% endblock %}
\ No newline at end of file diff --git a/data/templates/repo-sidebar-list.htm b/data/templates/repo-sidebar-list.htm new file mode 100644 index 0000000..c20e8b6 --- /dev/null +++ b/data/templates/repo-sidebar-list.htm @@ -0,0 +1,7 @@ + <li> + <a href="{{repo.getLink('display')}}"> + {{repo.id}} + {{repo.getDescription}} + </a><br/> + <span title="{{repo.crdate|date('c')}}">{{dh.get(repo.crdate)}}</span> + </li> |
