diff options
| author | Christian Weiske <cweiske@cweiske.de> | 2012-04-17 13:48:13 +0200 |
|---|---|---|
| committer | Christian Weiske <cweiske@cweiske.de> | 2012-04-17 13:48:13 +0200 |
| commit | c5544ea6607e49bd5f3cceecd59903687e8b1654 (patch) | |
| tree | 601484b12f2a346470558ca844f6fc4edeb97539 | |
| parent | 9fc959bf79889f9800f25e42a1d237409227d500 (diff) | |
| download | phorkie-c5544ea6607e49bd5f3cceecd59903687e8b1654.tar.gz phorkie-c5544ea6607e49bd5f3cceecd59903687e8b1654.zip | |
use Date_HumanDiff from PEAR to display changelog times
| -rw-r--r-- | data/templates/display-sidebar-history.htm | 2 | ||||
| -rw-r--r-- | www/display.php | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/data/templates/display-sidebar-history.htm b/data/templates/display-sidebar-history.htm index 627420b..7deacd0 100644 --- a/data/templates/display-sidebar-history.htm +++ b/data/templates/display-sidebar-history.htm @@ -10,7 +10,7 @@ {% endspaceless %} <a class="hash" href="{{repo.getLink('commit', commit.hash)}}">{{commit.hash|slice(0, 6)}}</a> <img src="{{commit.getIconUrl}}" alt="{{commit.committerName}}" title="{{commit.committerName}}" width="20"/> - <span title="{{commit.committerTime|date('c')}}">{{commit.committerTime|date('Y-m-d')}}</span> + <span title="{{commit.committerTime|date('c')}}">{{dh.get(commit.committerTime)}}</span> </li> {% else %} <p>No commits yet</p> diff --git a/www/display.php b/www/display.php index 7a1c1cc..c8df8a9 100644 --- a/www/display.php +++ b/www/display.php @@ -12,6 +12,7 @@ render( 'display', array( 'repo' => $repo, + 'dh' => new \Date_HumanDiff(), ) ); ?> |
