This repository was archived by the owner on Jun 21, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 11package actions
22
3- import "github.com/go-xweb/xweb"
3+ import (
4+ "strings"
5+
6+ "github.com/go-xweb/xweb"
7+ )
48
59// DocsRouter serves about page.
610type DocsAction struct {
@@ -9,9 +13,14 @@ type DocsAction struct {
913get xweb.Mapper `xweb:"/"`
1014}
1115
16+ func toLower (l string ) string {
17+ return strings .ToLower (l )
18+ }
19+
1220// Get implemented Get method for DocsRouter.
1321func (this * DocsAction ) Get () error {
1422return this .Render ("docs.html" , & xweb.T {
15- "IsDocs" : true ,
23+ "IsDocs" : true ,
24+ "toLower" : toLower ,
1625})
1726}
Original file line number Diff line number Diff line change 1717< div id ="wrapper ">
1818{{include "base/navbar.html"}}
1919< div id ="main ">
20- < div class =" container main-container " >
21- < iframe frameBorder =0 marginwidth =0 marginheight =0 src ="http://lunny.gitbooks. io/xorm- manual-{{.Lang}}/content / " style ="width:100%;height:1500px; "> </ iframe >
20+ < div >
21+ < iframe frameBorder =0 marginwidth =0 marginheight =0 src ="http://gobook. io/read/go-xorm/ manual-{{toLower .Lang}}/ " style ="width:100%;height:1500px; "> </ iframe >
2222 {{include "base/disqus.html"}}
2323 </ div >
2424 </ div >
2525</ div >
26- </ div >
2726{{include "base/footer.html"}}
2827</ body >
2928</ html >
You can’t perform that action at this time.
0 commit comments