2023-06-19 23:42:47 +02:00
|
|
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
|
|
|
// SPDX-License-Identifier: Apache-2.0
|
2021-03-08 00:25:34 +01:00
|
|
|
|
2023-08-10 06:15:55 +02:00
|
|
|
package ui // import "miniflux.app/v2/ui"
|
2021-03-08 00:25:34 +01:00
|
|
|
|
|
|
|
import (
|
|
|
|
"net/http"
|
|
|
|
|
2023-08-10 06:15:55 +02:00
|
|
|
"miniflux.app/v2/http/request"
|
|
|
|
"miniflux.app/v2/http/response/html"
|
|
|
|
"miniflux.app/v2/ui/session"
|
|
|
|
"miniflux.app/v2/ui/view"
|
2021-03-08 00:25:34 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
func (h *handler) showOfflinePage(w http.ResponseWriter, r *http.Request) {
|
|
|
|
sess := session.New(h.store, request.SessionID(r))
|
|
|
|
view := view.New(h.tpl, r, sess)
|
|
|
|
html.OK(w, r, view.Render("offline"))
|
|
|
|
}
|