Login
4 branches 0 tags
Ben (T14s/Arch Linux) Fixed sidebar browse link 86c08bf 1 month ago 179 Commits
rubhub / templates / project_branches.html
<!DOCTYPE html>
<html>

  <head>
    <title>{{ owner.name }}/{{ project.name }}</title>
  </head>

  <body>
    {% include "sidebar.html" %}
    <main>
      <section>
        <div class="page-header">
          <h1 class="project-header">
            <a href="{{ owner.uri() }}">{{ owner.name }}</a> /
            <a href="{{ project.uri() }}">{{ project.name }}</a> /
            <a href="{{ project.uri_branches() }}">branches</a>
          </h1>
        </div>

        {% include "project_tabs.html" %}

        <div class="card">
          <div class="branch-list">
            {% if branches.len() > 0 %}
            {% for info in branches %}
            <h5><a href="{{ project.uri_tree(info.branch_name, "") }}">{{ info.branch_name }}</a></h5>
            <div class="commit-bar">
              {% if let Some(commit) = info.commits.first() %}
              <div class="commit">
                <span class="commit-author" title="{{ commit.author }}">{{ commit.author }}</span>
                <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(info.branch_name, 0) }}" class="commit-count">⟲ {{ info.commit_count }} commit{% if info.commit_count != 1 %}s{% endif %}</a>
              </div>
              {% endif %}
            </div>
            {% endfor %}
            {% else %}
            <p>No branches exist yet</p>
            {% endif %}
          </div>
        </div>
      </section>
    </main>
  </body>

</html>