forked from goffee/core
Compare commits
No commits in common. "05bd3a01ee1bc4bcd7ead7e35fc30366bf3cba1e" and "7073cd1c21913816445c2fc9a6e0294a5429122c" have entirely different histories.
05bd3a01ee
...
7073cd1c21
2 changed files with 0 additions and 29 deletions
|
@ -1,17 +0,0 @@
|
||||||
package components
|
|
||||||
|
|
||||||
type ContentTable struct {
|
|
||||||
ID string
|
|
||||||
AllTH []ContentTableTH
|
|
||||||
AllTD [][]ContentTableTD
|
|
||||||
}
|
|
||||||
|
|
||||||
type ContentTableTH struct {
|
|
||||||
ID string
|
|
||||||
Value string
|
|
||||||
}
|
|
||||||
|
|
||||||
type ContentTableTD struct {
|
|
||||||
ID string
|
|
||||||
Value string
|
|
||||||
}
|
|
|
@ -1,12 +0,0 @@
|
||||||
{{define "content_table"}}
|
|
||||||
<table class="table table-hover" {{ if .ID }}id="{{.ID}}"{{end}}>
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
{{range $index, $col := .AllTH}}<th {{ if .ID }}id="{{.ID}}"{{end}} scope="col">{{ $col.Value }}</th>{{end}}
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
{{range .AllTD}}<tr scope="row">{{range .}}<td {{ if .ID }}id="{{.ID}}"{{end}}>{{ .Value }}</td>{{end}}</tr>{{end}}
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
{{end}}
|
|
Loading…
Reference in a new issue