summaryrefslogtreecommitdiff
path: root/cgithub/views/repo.eta
blob: 5bebb95df5c1cae555aa65ab9d09ac979c4eab5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<% layout("./layout") %>

<% if (it.info) { %>
  <div class="box">
    <% if (it.info.description) { %>
      <div class="description"><%= it.info.description %></div>
    <% } %>
    <% if (it.info.website) { %>
      <div><img src="/static/icons/link.svg" alt="" class="icon"> <a href="<%= it.info.website %>" rel="noopener noreferrer"><%= it.info.website %></a></div>
    <% } %>
    <% if (it.info.stars) { %>
      <span class="count"><img src="/static/icons/star.svg" alt="stars" class="icon"> <%= it.info.stars %></span>
    <% } %>
    <% if (it.info.watchers) { %>
      <span class="count"><img src="/static/icons/eye.svg" alt="watchers" class="icon"> <%= it.info.watchers %></span>
    <% } %>
    <% if (it.info.forks) { %>
      <span class="count"><img src="/static/icons/git-fork.svg" alt="forks" class="icon"> <%= it.info.forks %></span>
    <% } %>
    <% if (it.info.numReleases) { %>
      <div><a href="/<%= it.repo.owner %>/<%= it.repo.name %>/releases" rel="noreferrer"><%= it.info.numReleases %> releases</a></div>
    <% } %>
  </div>
<% } %>

<%~ include("./_tree", it) %>