develop #12

Merged
zeni merged 4 commits from develop into main 2024-10-29 13:31:48 -04:00
2 changed files with 2 additions and 1 deletions
Showing only changes of commit 1657c19cc4 - Show all commits

View file

@ -10,6 +10,7 @@ type ContentDropdown struct {
type ContentDropdownItem struct {
Text string
Link string
ID string
IsDisabled bool
IsActive bool
}

View file

@ -1,5 +1,5 @@
{{define "content_dropdown_item"}}
<li><a class="dropdown-item {{if eq .IsActive true}}active{{end}} {{if eq .IsDisabled true}}disabled{{end}}" href="{{.Link}}">{{.Text}}</a></li>
<li><a {{ if .ID }}id="{{.ID}}"{{end}} class="dropdown-item {{if eq .IsActive true}}active{{end}} {{if eq .IsDisabled true}}disabled{{end}}" href="{{.Link}}">{{.Text}}</a></li>
{{end}}
{{define "content_dropdown"}}