forked from goffee/core
add core services, add graph service, add component graph
This commit is contained in:
parent
59ea47dcd6
commit
7c92148ae4
7 changed files with 183 additions and 4 deletions
8
template/components/content_graph.go
Normal file
8
template/components/content_graph.go
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
package components
|
||||
|
||||
type ContentGraph struct {
|
||||
Graph string // pie, bar
|
||||
Labels string
|
||||
Values string
|
||||
Alt string
|
||||
}
|
||||
3
template/components/content_graph.html
Normal file
3
template/components/content_graph.html
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
{{define "content_graph"}}
|
||||
<img src="/coregraph/graph/{{.Graph}}?l={{.Labels}}&v={{.Values}}" alt="{{.Alt}}">
|
||||
{{end}}
|
||||
Loading…
Add table
Add a link
Reference in a new issue