~edwargix/git.sr.ht

f08af3e67a1b8a55d01f4ce517363e497b2acd4f — наб 4 years ago a003323
Don't strip the last commit from logged ones

This essentially partially reverts commit 1bafc9b "Fix log page
handling of initial commit", but the initial commit works anyway

Ref: ~sircmpwn/git.sr.ht#317
1 files changed, 2 insertions(+), 9 deletions(-)

M gitsrht/templates/log.html
M gitsrht/templates/log.html => gitsrht/templates/log.html +2 -9
@@ 36,22 36,15 @@
  <div class="row">
    <div class="col-md-12">
      <div class="event-list">
        {% if commits %}
        {% if commits[-1].parents %}
        {% set show_commits = commits[:-1] %}
        {% else %}
        {% set show_commits = commits %}
        {% endif %}
        {% for c in show_commits %}
        {% for c in commits %}
        <div class="event">
          {{ utils.commit_event(repo, c, True, refs) }}
        </div>
        {% endfor %}
        {% else %}
        <div class="event">
          No commits{% if path != [''] %} for this path{% endif %}.
        </div>
        {% endif %}
        {% endfor %}
      </div>
      {% if commits and commits[-1].parents %}
      <a