<div class="item tag {{ifeq$release.TagName.}}selected{{end}}" data-url="{{$.root.RepoLink}}/compare/{{EscapePound.}}...{{if$release.IsDraft}}{{EscapePound$release.Target}}{{else}}}{{if$release.TagName}}{{EscapePound$release.TagName}}{{else}}{{EscapePound$release.Sha1}}{{end}}{{end}}">{{.}}</div>
<div class="item tag {{ifeq$release.TagName.}}selected{{end}}" data-url="{{$.root.RepoLink}}/compare/{{EscapePound.}}...{{if$release.IsDraft}}{{EscapePound$release.Target}}{{else}}{{if$release.TagName}}{{EscapePound$release.TagName}}{{else}}{{EscapePound$release.Sha1}}{{end}}{{end}}">{{.}}</div>
{{else}}
<div class="item tag {{ifeq$.root.BranchName.}}selected{{end}}" data-url="{{$.root.RepoLink}}/{{if$.root.PageIsCommits}}commits{{else}}src{{end}}/tag/{{EscapePound.}}{{if$.root.TreePath}}/{{EscapePound$.root.TreePath}}{{end}}">{{.}}</div>