summaryrefslogtreecommitdiff
path: root/cgithub/views/_refs.eta
blob: 2450c4bcb9afffe08d68c63c2749a61923061456 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<% if (it.refs.length === 0) { %>
  <div class="ref-selector-empty">No <%= it.type %> found.</div>
<% } else { %>
  <ul class="ref-selector-items">
    <% for (const ref of it.refs) { %>
      <li>
        <a href="/<%= it.repo.owner %>/<%= it.repo.name %>/tree/<%= ref.name %>"><%= ref.name %></a>
        <% if (ref.isDefault) { %><span class="ref-selector-badge">default</span><% } %>
      </li>
    <% } %>
  </ul>
<% } %>
<% if (it.hasMore) { %>
  <div class="ref-selector-more">
    <a href="/<%= it.repo.owner %>/<%= it.repo.name %>/<%= it.type %>">View all <%= it.type %></a>
  </div>
<% } %>