X-Git-Url: https://git.cweiske.de/phorkie.git/blobdiff_plain/4e92ab575b933b67601092036a4ce8ac3557d7d2..3f5216d836005f94da0d2dbe8f2cf520fb9f20a0:/data/templates/feed-updated.htm diff --git a/data/templates/feed-updated.htm b/data/templates/feed-updated.htm index 699dabd..ff1d609 100644 --- a/data/templates/feed-updated.htm +++ b/data/templates/feed-updated.htm @@ -12,13 +12,24 @@ {{repo.getLink('display', null, true)}} {{repo.getTitle}} {{repo.crdate|date('c')}} - {{repo.modate|date('c')}} + {% set commit = repo.getHistory().0 %} + {{commit.committerTime|date('c')}} - {% set owner=repo.getOwner() %} - {{owner.name}} - {{owner.email}} + {{commit.committerName}} + {{commit.committerEmail}} + {% spaceless %} + {% if commit.filesChanged %} + {{ntext(commit.filesChanged, "%d file", "%d files")}} changed{% if commit.linesAdded %},{% endif %} + {% endif %} + {% if commit.linesAdded %} + {{ntext(commit.linesAdded, "%d line", "%d lines")}} added{% if commit.linesDeleted %},{% endif %} + {% endif %} + {% if commit.linesDeleted %} + {{ntext(commit.linesDeleted, "%d line", "%d lines")}} deleted + {% endif %} + {% endspaceless %} {% endfor %} \ No newline at end of file