Add notifications

This commit is contained in:
Las Zenow 2012-08-19 02:29:34 +02:00
parent 6545cbdff8
commit e68f41445e
8 changed files with 114 additions and 63 deletions

View file

@ -43,14 +43,14 @@ func storeFile(r *http.Request) error {
}
type uploadData struct {
S Status
Msg string
S Status
Msg string
}
func uploadHandler(coll *mgo.Collection) func(http.ResponseWriter, *http.Request) {
return func(w http.ResponseWriter, r *http.Request) {
var data uploadData
data.S.User = SessionUser(r)
data.S = GetStatus(w, r)
data.S.Upload = true
data.Msg = ""
if r.Method == "POST" {