tangled
alpha
login
or
join now
moll.dev
/
core
forked from
tangled.org/core
this repo has no description
0
fork
atom
overview
issues
pulls
pipelines
move tag pills to info line
oppi.li
11 months ago
38d10272
329cd001
+9
-9
2 changed files
expand all
collapse all
unified
split
appview
pages
templates
repo
index.html
state
repo.go
+9
-7
appview/pages/templates/repo/index.html
···
140
140
></i>
141
141
</button>
142
142
{{ end }}
143
143
-
144
144
-
{{ $tagsForCommit := index $.TagMap .Hash.String }}
145
145
-
{{ range $tagsForCommit }}
146
146
-
<span class="text-xs rounded-full bg-black text-white px-2 mx-1 inline-flex items-center">
147
147
-
{{ . }}
148
148
-
</span>
149
149
-
{{ end }}
150
143
</div>
151
144
{{ if gt (len $messageParts) 1 }}
152
145
<p
···
181
174
class="inline-block px-1 select-none after:content-['·']"
182
175
></div>
183
176
<span>{{ timeFmt .Author.When }}</span>
177
177
+
<div
178
178
+
class="inline-block px-1 select-none after:content-['·']"
179
179
+
></div>
180
180
+
{{ $tagsForCommit := index $.TagMap .Hash.String }}
181
181
+
{{ range $tagsForCommit }}
182
182
+
<span class="text-xs rounded-full bg-gray-700 text-white px-2 mx-1/2 inline-flex items-center">
183
183
+
{{ . }}
184
184
+
</span>
185
185
+
{{ end }}
184
186
</div>
185
187
</div>
186
188
{{ end }}
-2
appview/state/repo.go
···
72
72
tagMap[hash] = append(tagMap[hash], branch.Name)
73
73
}
74
74
75
75
-
log.Println(tagMap)
76
76
-
77
75
user := s.auth.GetUser(r)
78
76
s.pages.RepoIndexPage(w, pages.RepoIndexParams{
79
77
LoggedInUser: user,