forked from goffee/core
Compare commits
No commits in common. "e7cc41672dc7a75bb10b20ab18d23a7d3f540312" and "852d647f097b8d9fea3cf4f4b2e9a0ff57bbcb0a" have entirely different histories.
e7cc41672d
...
852d647f09
2 changed files with 1 additions and 2 deletions
|
@ -10,7 +10,6 @@ type ContentDropdown struct {
|
|||
type ContentDropdownItem struct {
|
||||
Text string
|
||||
Link string
|
||||
ID string
|
||||
IsDisabled bool
|
||||
IsActive bool
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{{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}}
|
||||
|
||||
{{define "content_dropdown"}}
|
||||
|
|
Loading…
Reference in a new issue