forked from tangled.org/core
Monorepo for Tangled — https://tangled.org

move tag pills to info line

Changed files
+9 -9
appview
pages
templates
repo
state
+9 -7
appview/pages/templates/repo/index.html
···
></i>
</button>
{{ end }}
-
-
{{ $tagsForCommit := index $.TagMap .Hash.String }}
-
{{ range $tagsForCommit }}
-
<span class="text-xs rounded-full bg-black text-white px-2 mx-1 inline-flex items-center">
-
{{ . }}
-
</span>
-
{{ end }}
</div>
{{ if gt (len $messageParts) 1 }}
<p
···
class="inline-block px-1 select-none after:content-['·']"
></div>
<span>{{ timeFmt .Author.When }}</span>
+
<div
+
class="inline-block px-1 select-none after:content-['·']"
+
></div>
+
{{ $tagsForCommit := index $.TagMap .Hash.String }}
+
{{ range $tagsForCommit }}
+
<span class="text-xs rounded-full bg-gray-700 text-white px-2 mx-1/2 inline-flex items-center">
+
{{ . }}
+
</span>
+
{{ end }}
</div>
</div>
{{ end }}
-2
appview/state/repo.go
···
tagMap[hash] = append(tagMap[hash], branch.Name)
}
-
log.Println(tagMap)
-
user := s.auth.GetUser(r)
s.pages.RepoIndexPage(w, pages.RepoIndexParams{
LoggedInUser: user,