mirror of https://github.com/kiwix/libkiwix.git
Preparing for a single error page template
This commit is contained in:
parent
f4059f3faf
commit
d8a60db739
|
@ -106,7 +106,11 @@ HTTP404HtmlResponse::HTTP404HtmlResponse(const InternalServer& server,
|
||||||
RESOURCE::templates::_404_html)
|
RESOURCE::templates::_404_html)
|
||||||
{
|
{
|
||||||
kainjow::mustache::list emptyList;
|
kainjow::mustache::list emptyList;
|
||||||
this->m_data = kainjow::mustache::object{{"details", emptyList}};
|
this->m_data = kainjow::mustache::object{
|
||||||
|
{"PAGE_TITLE", "Content not found"},
|
||||||
|
{"PAGE_HEADING", "Not Found"},
|
||||||
|
{"details", emptyList}
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
HTTP404HtmlResponse& HTTP404HtmlResponse::operator+(UrlNotFoundMsg /*unused*/)
|
HTTP404HtmlResponse& HTTP404HtmlResponse::operator+(UrlNotFoundMsg /*unused*/)
|
||||||
|
|
|
@ -2,10 +2,10 @@
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
<head>
|
<head>
|
||||||
<meta content="text/html;charset=UTF-8" http-equiv="content-type" />
|
<meta content="text/html;charset=UTF-8" http-equiv="content-type" />
|
||||||
<title>Content not found</title>
|
<title>{{PAGE_TITLE}}</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>Not Found</h1>
|
<h1>{{PAGE_HEADING}}</h1>
|
||||||
{{#details}}
|
{{#details}}
|
||||||
<p>
|
<p>
|
||||||
{{{p}}}
|
{{{p}}}
|
||||||
|
|
Loading…
Reference in New Issue