Login
4 branches 0 tags
Ben (Desktop/Arch) Extracted git repo service into crate 6a6b01d 18 days ago 219 Commits
rubhub / templates / partials / commit_bar.html
<div class="commit-bar">
  {% if let Some(commit) = info.commits.first() %}
  <div class="commit">
    {% if let Some(slug) = commit.author_user_slug %}
    <a href="/~{{ slug }}" class="commit-author" title="{{ commit.author }}">{{ commit.author }}</a>
    {% else %}
    <span class="commit-author" title="{{ commit.author }}">{{ commit.author }}</span>
    {% endif %}
    <span class="commit-message" title="{{ commit.message }}">{{ commit.message }}</span>
    <span class="commit-id">{{ commit.id }}</span>
    <span class="commit-time">{{ commit.relative_time() }}</span>
    <a href="{{ project.uri_log(selected_branch, 0) }}" class="commit-count"><span class="icon i-history"></span> {{ info.commit_count }} Commit{% if info.commit_count != 1 %}s{% endif %}</a>
  </div>
  {% endif %}
</div>