offline.go 550 B

1234567891011121314151617181920
  1. // Copyright 2021 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 ui // import "miniflux.app/ui"
  5. import (
  6. "net/http"
  7. "miniflux.app/http/request"
  8. "miniflux.app/http/response/html"
  9. "miniflux.app/ui/session"
  10. "miniflux.app/ui/view"
  11. )
  12. func (h *handler) showOfflinePage(w http.ResponseWriter, r *http.Request) {
  13. sess := session.New(h.store, request.SessionID(r))
  14. view := view.New(h.tpl, r, sess)
  15. html.OK(w, r, view.Render("offline"))
  16. }