~edwargix/git.sr.ht

330fc074373deb7f81c84b1113ac48e61276c7b7 — Drew DeVault 6 years ago c6533c2
Wire up commit placeholder links throughout
1 files changed, 12 insertions(+), 2 deletions(-)

M gitsrht/templates/tree.html
M gitsrht/templates/tree.html => gitsrht/templates/tree.html +12 -2
@@ 7,7 7,12 @@
      {{ utils.breadcrumb(ref, repo, path, path_join) }}
    </span>
    <div class="pull-right">
      <a href="#">{{commit.id.hex[:8]}}</a> &mdash;
      <a
        href="{{url_for("repo.commit",
          owner=repo.owner.canonical_name,
          repo=repo.name,
          ref=ref)}}"
      >{{commit.id.hex[:8]}}</a> &mdash;
      <a href="#">{{commit.author.name}}</a>:
      {{trim_commit(commit.message)}}
      <span class="text-muted">


@@ 48,7 53,12 @@
      </div>
      <div class="commit">
        {% if entry.commit %}
        <a href="#">{{trim_commit(entry.commit.message)}}</a>
        <a
          href="{{url_for("repo.commit",
            owner=repo.owner.canonical_name,
            repo=repo.name,
            ref=entry.commit.id.hex)}}"
        >{{trim_commit(entry.commit.message)}}</a>
        {% endif %}
      </div>
      <div class="date">