// Copyright 2015 The Gogs Authors. All rights reserved. // Copyright 2018 Gitote. All rights reserved. // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. package admin import ( "gitote/gitote/pkg/context" ) const ( // NEWS list page template NEWS = "admin/news/list" // NEWS_NEW page template NEWS_NEW = "admin/news/new" // NEWS_EDIT page template NEWS_EDIT = "admin/news/edit" ) // News shows news page func News(c *context.Context) { c.Data["Title"] = "News" c.Data["PageIsAdminNews"] = true c.HTML(200, NEWS) } // News shows news page func NewsNew(c *context.Context) { c.Data["Title"] = "News" c.Data["PageIsAdminNews"] = true c.HTML(200, NEWS_NEW) } // News shows news page func NewsEdit(c *context.Context) { c.Data["Title"] = "News" c.Data["PageIsAdminNews"] = true c.HTML(200, NEWS_EDIT) }