Setup templates structure
This commit is contained in:
parent
8ef198dfac
commit
b1c5adc2f2
12 changed files with 100 additions and 7 deletions
15
routers/dashboard.go
Normal file
15
routers/dashboard.go
Normal file
|
@ -0,0 +1,15 @@
|
|||
// Copyright 2014 The Gogs Authors. All rights reserved.
|
||||
// Use of this source code is governed by a MIT-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
package routers
|
||||
|
||||
import (
|
||||
"github.com/martini-contrib/render"
|
||||
)
|
||||
|
||||
func Dashboard(r render.Render) {
|
||||
r.HTML(200, "dashboard", map[string]interface{}{
|
||||
"Title": "Dashboard",
|
||||
})
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue