integrations.go 614 B

1234567891011121314151617181920
  1. // Copyright 2017 Frédéric Guillot. All rights reserved.
  2. // Use of this source code is governed by the Apache 2.0
  3. // license that can be found in the LICENSE file.
  4. package controller
  5. import "github.com/miniflux/miniflux2/server/core"
  6. // ShowIntegrations renders the page with all external integrations.
  7. func (c *Controller) ShowIntegrations(ctx *core.Context, request *core.Request, response *core.Response) {
  8. args, err := c.getCommonTemplateArgs(ctx)
  9. if err != nil {
  10. response.HTML().ServerError(err)
  11. return
  12. }
  13. response.HTML().Render("integrations", args.Merge(tplParams{
  14. "menu": "settings",
  15. }))
  16. }