develop #12

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

View file

@ -3,6 +3,7 @@ package components
type ContentHref struct {
Text string
Link string
Target string // _blank _parent _self _top
Icon string
IsButton bool
TypeClass string // type primary, secondary, success, danger, warning, info, light, dark, link

View file

@ -1,5 +1,6 @@
{{define "content_href"}}
<a class="{{if eq .IsButton true}} btn btn-{{.TypeClass}}{{end}} {{if eq .IsDisabled true}}disabled{{end}}"
<a class="{{if eq .IsButton true}} btn btn-{{.TypeClass}}{{end}} {{if eq .IsDisabled true}}disabled{{end}}"
{{if .Target}} target="{{.Target}}"{{end}}
href="{{.Link}}" {{if eq .IsButton true}}role="button"{{end}} {{if eq .IsDisabled true}}aria-disabled="true"{{end}}>
{{.Text}}
</a>