Compare commits

..

No commits in common. "b87e0113c98a507aaef22ed6ec281f556148e18e" and "f07131086a826ee0a92296d220bd5e1e1254a076" have entirely different histories.

4 changed files with 2 additions and 5 deletions

View file

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

View file

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

View file

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

View file

@ -1,6 +1,5 @@
{{define "content_href"}} {{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}}> href="{{.Link}}" {{if eq .IsButton true}}role="button"{{end}} {{if eq .IsDisabled true}}aria-disabled="true"{{end}}>
{{.Text}} {{.Text}}
</a> </a>