mirror of
https://github.com/golang/go
synced 2024-11-05 11:46:12 -07:00
godoc: remove disabled admin code
Change-Id: If3e2264b874c7a5447929888fed0ce6ad61f3475 Reviewed-on: https://go-review.googlesource.com/52291 Reviewed-by: Chris Broadfoot <cbro@golang.org>
This commit is contained in:
parent
f2b3bb0049
commit
6fdd948b81
@ -32,7 +32,6 @@ import (
|
||||
"google.golang.org/appengine/datastore"
|
||||
"google.golang.org/appengine/log"
|
||||
"google.golang.org/appengine/memcache"
|
||||
"google.golang.org/appengine/user"
|
||||
)
|
||||
|
||||
const (
|
||||
@ -183,7 +182,6 @@ var featuredFiles = []Feature{
|
||||
type listTemplateData struct {
|
||||
Featured []Feature
|
||||
Stable, Unstable, Archive []Release
|
||||
LoginURL string
|
||||
}
|
||||
|
||||
var (
|
||||
@ -218,11 +216,6 @@ func listHandler(w http.ResponseWriter, r *http.Request) {
|
||||
d.Featured = filesToFeatured(d.Stable[0].Files)
|
||||
}
|
||||
|
||||
d.LoginURL, _ = user.LoginURL(c, "/dl")
|
||||
if user.Current(c) != nil {
|
||||
d.LoginURL, _ = user.LogoutURL(c, "/dl")
|
||||
}
|
||||
|
||||
item := &memcache.Item{Key: cacheKey, Object: &d, Expiration: cacheDuration}
|
||||
if err := memcache.Gob.Set(c, item); err != nil {
|
||||
log.Errorf(c, "cache set error: %v", err)
|
||||
|
@ -106,7 +106,7 @@ please follow the <a href="/doc/install">installation instructions</a>.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
If you are building from source,
|
||||
If you are building from source,
|
||||
follow the <a href="/doc/install/source">source installation instructions</a>.
|
||||
</p>
|
||||
|
||||
@ -146,13 +146,6 @@ information about Go releases.
|
||||
</div>
|
||||
{{end}}
|
||||
|
||||
|
||||
<!-- Disabled for now; there's no admin functionality yet.
|
||||
<p>
|
||||
<small><a href="{{.LoginURL}}">π</a></small>
|
||||
</p>
|
||||
-->
|
||||
|
||||
<div id="footer">
|
||||
<p>
|
||||
Except as
|
||||
|
Loading…
Reference in New Issue
Block a user