diff options
| author | Justin J. Novack <jnovack@gmail.com> | 2012-09-30 17:43:58 -0400 |
|---|---|---|
| committer | Justin J. Novack <jnovack@gmail.com> | 2012-10-01 17:21:56 -0400 |
| commit | d5901a1fcc8b79f9a23bd3888ef2f281f07b9459 (patch) | |
| tree | b306fba401eadd70e3c042f6c0c935e08cc0c16c /data | |
| parent | 8d29b8e073c9a3795ad7ededf4cb5e8683102162 (diff) | |
| download | phorkie-d5901a1fcc8b79f9a23bd3888ef2f281f07b9459.tar.gz phorkie-d5901a1fcc8b79f9a23bd3888ef2f281f07b9459.zip | |
Use commit timestamps for ElasticSearch and sort on last commit time.
Diffstat (limited to 'data')
| -rw-r--r-- | data/templates/list.htm | 11 | ||||
| -rw-r--r-- | data/templates/new.htm | 2 | ||||
| -rw-r--r-- | data/templates/repo-sidebar-list.htm | 2 |
3 files changed, 13 insertions, 2 deletions
diff --git a/data/templates/list.htm b/data/templates/list.htm index d0732ea..aee3100 100644 --- a/data/templates/list.htm +++ b/data/templates/list.htm @@ -11,3 +11,14 @@ {% include 'pager.htm' %} {% endblock %} + +{% block sidebar %} + {% if recents.results %} + <h3>Recently updated</h3> + <ul> + {% for repo in recents.repos %} + {% include 'repo-sidebar-list.htm' %} + {% endfor %} + </ul> + {% endif %} +{% endblock %} diff --git a/data/templates/new.htm b/data/templates/new.htm index 7548c2a..0f69719 100644 --- a/data/templates/new.htm +++ b/data/templates/new.htm @@ -38,7 +38,7 @@ $(document).ready(function() { {% block sidebar %} {% if recents.results %} - <h3>Recently created</h3> + <h3>Recently updated</h3> <ul> {% for repo in recents.repos %} {% include 'repo-sidebar-list.htm' %} diff --git a/data/templates/repo-sidebar-list.htm b/data/templates/repo-sidebar-list.htm index ed262ac..cb9f3d8 100644 --- a/data/templates/repo-sidebar-list.htm +++ b/data/templates/repo-sidebar-list.htm @@ -2,5 +2,5 @@ <a href="{{repo.getLink('display')}}"> {{repo.getTitle}} </a><br/> -    <span title="{{repo.crdate|date('c')}}">{{dh.get(repo.crdate)}}</span> +    <span title="{{repo.modate|date('c')}}">{{dh.get(repo.modate)}}</span> </li> |
