cerrado @ e775b5356ea3adaeeca2d4be5ef874b36fa183d0

  1// Code generated by qtc from "tags.qtpl". DO NOT EDIT.
  2// See https://github.com/valyala/quicktemplate for details.
  3
  4//line tags.qtpl:1
  5package templates
  6
  7//line tags.qtpl:1
  8import "git.gabrielgio.me/cerrado/pkg/git"
  9
 10//line tags.qtpl:3
 11import (
 12	qtio422016 "io"
 13
 14	qt422016 "github.com/valyala/quicktemplate"
 15)
 16
 17//line tags.qtpl:3
 18var (
 19	_ = qtio422016.Copy
 20	_ = qt422016.AcquireByteBuffer
 21)
 22
 23//line tags.qtpl:3
 24func StreamListTags(qw422016 *qt422016.Writer, name string, tags []*git.TagReference) {
 25//line tags.qtpl:3
 26	qw422016.N().S(`
 27`)
 28//line tags.qtpl:4
 29	if len(tags) > 0 {
 30//line tags.qtpl:4
 31		qw422016.N().S(`
 32<div class="event-list">
 33  `)
 34//line tags.qtpl:6
 35		for _, t := range tags {
 36//line tags.qtpl:6
 37			qw422016.N().S(`
 38  <div class="event me-md-2">
 39    <div class="row ">
 40      <div class="col-4">
 41       <a title="`)
 42//line tags.qtpl:10
 43			qw422016.E().S(t.HashString())
 44//line tags.qtpl:10
 45			qw422016.N().S(`" href="/`)
 46//line tags.qtpl:10
 47			qw422016.E().S(name)
 48//line tags.qtpl:10
 49			qw422016.N().S(`/commit/`)
 50//line tags.qtpl:10
 51			qw422016.E().S(t.HashString())
 52//line tags.qtpl:10
 53			qw422016.N().S(`">`)
 54//line tags.qtpl:10
 55			qw422016.E().S(t.ShortName())
 56//line tags.qtpl:10
 57			qw422016.N().S(`</a>
 58      </div>
 59      <div class="col-8">
 60        <div class="float-end">
 61          <a href="/`)
 62//line tags.qtpl:14
 63			qw422016.E().S(name)
 64//line tags.qtpl:14
 65			qw422016.N().S(`/archive/`)
 66//line tags.qtpl:14
 67			qw422016.E().S(t.ShortName())
 68//line tags.qtpl:14
 69			qw422016.N().S(`.tar.gz">tar.gz</a>
 70          <a href="/`)
 71//line tags.qtpl:15
 72			qw422016.E().S(name)
 73//line tags.qtpl:15
 74			qw422016.N().S(`/tree/`)
 75//line tags.qtpl:15
 76			qw422016.E().S(t.ShortName())
 77//line tags.qtpl:15
 78			qw422016.N().S(`/">tree</a>
 79          <a href="/`)
 80//line tags.qtpl:16
 81			qw422016.E().S(name)
 82//line tags.qtpl:16
 83			qw422016.N().S(`/log/`)
 84//line tags.qtpl:16
 85			qw422016.E().S(t.ShortName())
 86//line tags.qtpl:16
 87			qw422016.N().S(`/">log</a>
 88        </div>
 89      </div>
 90    </div>
 91    `)
 92//line tags.qtpl:20
 93			if t.Message() != "" {
 94//line tags.qtpl:20
 95				qw422016.N().S(`
 96    <div class="code-view">
 97      <pre>`)
 98//line tags.qtpl:22
 99				qw422016.E().S(t.Message())
100//line tags.qtpl:22
101				qw422016.N().S(`</pre>
102    </div>
103    `)
104//line tags.qtpl:24
105			}
106//line tags.qtpl:24
107			qw422016.N().S(`
108  </div>
109  `)
110//line tags.qtpl:26
111		}
112//line tags.qtpl:26
113		qw422016.N().S(`
114</div>
115`)
116//line tags.qtpl:28
117	} else {
118//line tags.qtpl:28
119		qw422016.N().S(`
120    <p> No tags </p>
121`)
122//line tags.qtpl:30
123	}
124//line tags.qtpl:30
125	qw422016.N().S(`
126`)
127//line tags.qtpl:31
128}
129
130//line tags.qtpl:31
131func WriteListTags(qq422016 qtio422016.Writer, name string, tags []*git.TagReference) {
132//line tags.qtpl:31
133	qw422016 := qt422016.AcquireWriter(qq422016)
134//line tags.qtpl:31
135	StreamListTags(qw422016, name, tags)
136//line tags.qtpl:31
137	qt422016.ReleaseWriter(qw422016)
138//line tags.qtpl:31
139}
140
141//line tags.qtpl:31
142func ListTags(name string, tags []*git.TagReference) string {
143//line tags.qtpl:31
144	qb422016 := qt422016.AcquireByteBuffer()
145//line tags.qtpl:31
146	WriteListTags(qb422016, name, tags)
147//line tags.qtpl:31
148	qs422016 := string(qb422016.B)
149//line tags.qtpl:31
150	qt422016.ReleaseByteBuffer(qb422016)
151//line tags.qtpl:31
152	return qs422016
153//line tags.qtpl:31
154}