1
0
Fork 0
forked from goffee/core

Merge pull request 'develop' (#27) from develop into main

Reviewed-on: goffee/core#27
This commit is contained in:
Zeni Kim 2025-09-18 01:12:53 -04:00
commit 3d67bc0a03
2 changed files with 7 additions and 3 deletions

View file

@ -1,10 +1,12 @@
package components
type ContentList struct {
ID string
Items []ContentListItem
}
type ContentListItem struct {
ID string
Text string
Description string
EndElement string

View file

@ -1,8 +1,10 @@
{{define "content_list"}}
<ul class="list-group">
<ul class="list-group" {{ if .ID }}id="{{.ID}}"{{end}}>
{{ range .Items}}
<li class="list-group-item text-wrap {{if eq .IsDisabled true}}disabled{{end}} {{if .TypeClass}}list-group-item-{{.TypeClass}}{{end}}"
{{if eq .IsDisabled true}}aria-disabled="true"{{end}}
<li class="list-group-item text-wrap {{if eq .IsDisabled true}}disabled{{end}}
{{if .TypeClass}}list-group-item-{{.TypeClass}}{{end}}"
{{if eq .IsDisabled true}}aria-disabled="true"{{end}}
{{ if .ID }}id="{{.ID}}"{{end}}
><div class="d-flex justify-content-between lh-sm"><p class="mb-1">{{.Text}}</p><span class="text-body-secondary ms-5">{{.EndElement}}</span></div>
<small>{{.Description}}</small>
</li>