Skip to main content

max / makenotwork

1.1 KB · 19 lines History Blame Raw
1 <div class="git-ref-bar">
2 <select class="git-ref-select" onchange="if(this.value) window.location.href=this.value">
3 {% for r in refs %}
4 <option value="/git/{{ owner }}/{{ repo_name }}/tree/{{ r.name }}"
5 {% if r.name == current_ref %}selected{% endif %}>
6 {% if r.is_branch %}{% else %}tag: {% endif %}{{ r.name }}
7 </option>
8 {% endfor %}
9 </select>
10 <nav class="git-nav-links">
11 <a href="/git/{{ owner }}/{{ repo_name }}/tree/{{ current_ref }}"{% if active_tab == "files" %} class="is-selected"{% endif %}>Files</a>
12 <a href="/git/{{ owner }}/{{ repo_name }}/commits/{{ current_ref }}"{% if active_tab == "commits" || active_tab == "commit" %} class="is-selected"{% endif %}>Commits</a>
13 <a href="/git/{{ owner }}/{{ repo_name }}/issues"{% if active_tab == "issues" %} class="is-selected"{% endif %}>Issues{% if open_issue_count > 0 %} ({{ open_issue_count }}){% endif %}</a>
14 {% if is_owner %}
15 <a href="/git/{{ owner }}/{{ repo_name }}/settings"{% if active_tab == "settings" %} class="is-selected"{% endif %}>Settings</a>
16 {% endif %}
17 </nav>
18 </div>
19