mirror of https://github.com/perkeep/perkeep.git
Merge "root page: added link to ui"
This commit is contained in:
commit
9b87c85329
|
@ -142,11 +142,13 @@ func (rh *RootHandler) ServeHTTP(rw http.ResponseWriter, req *http.Request) {
|
||||||
|
|
||||||
configLink := ""
|
configLink := ""
|
||||||
if auth.IsLocalhost(req) {
|
if auth.IsLocalhost(req) {
|
||||||
configLink = "<p>If you're coming from localhost, hit <a href='/setup'>/setup</a>.</p>"
|
configLink = "<p>If you're coming from localhost, configure your Camlistore server at <a href='/setup'>/setup</a>.</p>"
|
||||||
}
|
}
|
||||||
fmt.Fprintf(rw, "<html><body>This is camlistored, a "+
|
fmt.Fprintf(rw, "<html><body>This is camlistored, a "+
|
||||||
"<a href='http://camlistore.org'>Camlistore</a> server."+
|
"<a href='http://camlistore.org'>Camlistore</a> server."+
|
||||||
"%s</body></html>\n", configLink)
|
"%s"+
|
||||||
|
"<p>To manage your content, access the <a href='/ui'>/ui</a>.</p></body></html>\n",
|
||||||
|
configLink)
|
||||||
}
|
}
|
||||||
|
|
||||||
type byFromTo []*SyncHandler
|
type byFromTo []*SyncHandler
|
||||||
|
|
Loading…
Reference in New Issue