Compare commits
No commits in common. "95a37c9acaa80b944047195c469fd539e08a46c3" and "00adaed6a876186f16cbc617acf1ac7ed8914282" have entirely different histories.
95a37c9aca
...
00adaed6a8
2 changed files with 1 additions and 3 deletions
|
@ -3,7 +3,6 @@ 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
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
{{define "content_href"}}
|
||||
<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>
|
||||
|
|
Loading…
Reference in a new issue