OXYGENHUB
# 3f02e5ea4f2d oxygenhub / templates / bookmarks.html
1.3 KiB · HTML · last changed Milestone 0.1: browse 1 month ago source blame history raw
d23464c0 Andy McCall ↶ 1
{% extends "base.html" %}
2
{% import "repo_tabs.html" as m %}
3
{% block title %}Bookmarks · {{ repo.owner }}/{{ repo.name }}{% endblock %}
4
{% block bodyattrs %} data-repo="{{ repo.url }}"{% endblock %}
5
{% block tabs %}{% call m::tabs(repo, "bookmarks") %}{% endblock %}
6
{% block content %}
7
<div class="head"><h1>Bookmarks <small>{{ bookmarks.len() }}</small></h1></div>
8
<div class="table"><table>
9
<tr><th>Bookmark</th><th>Heads</th><th>Changes</th><th>Latest</th><th></th></tr>
10
{% for b in bookmarks %}
11
<tr>
12
  <td class="px"><a href="{{ repo.url }}/tree/{{ b.name }}">{{ b.name }}</a>{% if b.default %} <span class="tag">default</span>{% endif %}{% if b.conflicted %} <span class="tag bad">conflicts</span>{% endif %}</td>
13
  <td>{% for h in b.heads %}<a class="chip" href="{{ repo.url }}/change/{{ h }}">{{ h|short }}</a> {% endfor %}{% if b.heads.len() > 1 %}<span class="tag warn">{{ b.heads.len() }} heads</span>{% endif %}</td>
14
  <td>{{ b.changes }}</td>
15
  <td><time title="{{ b.latest_ms|when }}">{{ b.latest_ms|ago }}</time></td>
16
  <td class="small"><a href="{{ repo.url }}/changes/{{ b.name }}">history</a>{% if !b.default %} · <a href="{{ repo.url }}/compare/{{ repo.default_bookmark }}...{{ b.name }}">compare with {{ repo.default_bookmark }}</a>{% endif %}</td>
17
</tr>
18
{% endfor %}
19
</table></div>
20
{% endblock %}