summaryrefslogblamecommitdiffstats
path: root/templates/refs.html
blob: 5320a8ec88d2b584741c5e8e7b5b7c8dffeb7af8 (plain) (tree)
1
2
3
4
5
6
7
8
9



                       
                               


                          
                          

                        
                           






                                                                 
               
            
                    
                   
                        
                       
           
                                  

            

                                                         
                       
                               
            

               
            




               
{{ define "refs" }}
<html>
{{ template "head" . }}

  {{ template "repoheader" . }}
  <body>
    {{ template "nav" . }}
    <main>
      {{ $name := .name }}
      <h3>branches</h3>
      <div class="refs">
      {{ range .branches }}
        <div>
        <strong>{{ .Name.Short }}</strong>
        </div>
        <div>
        <a href="/{{ $name }}/tree/{{ .Name.Short }}/">browse</a>
        <a href="/{{ $name }}/log/{{ .Name.Short }}">log</a>
        </div>
      {{ end }}
      </div>
      {{ if .tags }}
      <h3>tags</h3>
      <div class="refs">
      {{ range .tags }}
      <div>
      <strong>{{ .Name }}</strong>
      </div>
      <div>
      <a href="/{{ $name }}/tree/{{ .Name }}/">browse</a>
      <a href="/{{ $name }}/log/{{ .Name }}">log</a>
      {{ if .Message }}
      <pre>{{ .Message }}</pre>
      </div>
      {{ end }}
      {{ end }}
      </div>
      {{ end }}
    </main>
  </body>
</html>
{{ end }}