mirror of
https://github.com/searxng/searxng
synced 2024-11-05 06:01:05 +00:00
Merge pull request #843 from not-my-profile/simple-page-with-header
This commit is contained in:
commit
c82b9c68d2
BIN
searx/static/themes/simple/css/searxng-rtl.min.css
vendored
BIN
searx/static/themes/simple/css/searxng-rtl.min.css
vendored
Binary file not shown.
Binary file not shown.
BIN
searx/static/themes/simple/css/searxng.min.css
vendored
BIN
searx/static/themes/simple/css/searxng.min.css
vendored
Binary file not shown.
Binary file not shown.
BIN
searx/static/themes/simple/js/searxng.min.js
vendored
BIN
searx/static/themes/simple/js/searxng.min.js
vendored
Binary file not shown.
@ -79,9 +79,7 @@ main {
|
|||||||
flex: 1;
|
flex: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
#main_preferences,
|
.page_with_header {
|
||||||
#main_about,
|
|
||||||
#main_stats {
|
|
||||||
margin: 2em auto;
|
margin: 2em auto;
|
||||||
width: 85em;
|
width: 85em;
|
||||||
}
|
}
|
||||||
@ -101,16 +99,8 @@ footer {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#main_preferences h1,
|
.page_with_header .logo {
|
||||||
#main_stats h1 {
|
height: 40px;
|
||||||
background: url('../img/searxng.png') no-repeat;
|
|
||||||
background-size: contain;
|
|
||||||
min-height: 40px;
|
|
||||||
margin: 0 auto;
|
|
||||||
|
|
||||||
span {
|
|
||||||
visibility: hidden;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
input[type="submit"],
|
input[type="submit"],
|
||||||
@ -647,9 +637,7 @@ article[data-vim-selected].category-social {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: @tablet) {
|
@media screen and (max-width: @tablet) {
|
||||||
#main_preferences,
|
.page_with_header {
|
||||||
#main_about,
|
|
||||||
#main_stats {
|
|
||||||
margin: 2rem 0.5rem;
|
margin: 2rem 0.5rem;
|
||||||
width: auto;
|
width: auto;
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{% extends 'simple/base.html' %}
|
{% extends 'simple/page_with_header.html' %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{{ help.about | safe }}
|
{{ help.about | safe }}
|
||||||
{% include "__common__/aboutextend.html" ignore missing %}
|
{% include "__common__/aboutextend.html" ignore missing %}
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
<link rel="icon" href="{{ url_for('static', filename='img/favicon.svg') }}" type="image/svg+xml">
|
<link rel="icon" href="{{ url_for('static', filename='img/favicon.svg') }}" type="image/svg+xml">
|
||||||
</head>
|
</head>
|
||||||
<body class="{{ endpoint }}_endpoint" >
|
<body class="{{ endpoint }}_endpoint" >
|
||||||
<main id="main_{{ self._TemplateReference__context.name|replace("simple/", "")|replace(".html", "") }}">
|
<main id="main_{{ self._TemplateReference__context.name|replace("simple/", "")|replace(".html", "") }}" class="{{body_class}}">
|
||||||
{% if errors %}
|
{% if errors %}
|
||||||
<div class="dialog-error" role="alert">
|
<div class="dialog-error" role="alert">
|
||||||
<a href="#" class="close" aria-label="close" title="close">×</a>
|
<a href="#" class="close" aria-label="close" title="close">×</a>
|
||||||
@ -47,6 +47,8 @@
|
|||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% block header %}
|
||||||
|
{% endblock %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
</main>
|
</main>
|
||||||
|
5
searx/templates/simple/page_with_header.html
Normal file
5
searx/templates/simple/page_with_header.html
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{% set body_class = "page_with_header" %}
|
||||||
|
{% extends "simple/base.html" %}
|
||||||
|
{% block header %}
|
||||||
|
<a href="{{ url_for('index') }}"><img class="logo" src="{{ url_for('static', filename='img/searxng.png') }}" alt="SearXNG"></a>
|
||||||
|
{% endblock %}
|
@ -1,7 +1,7 @@
|
|||||||
{% from 'simple/macros.html' import tabs_open, tabs_close, tab_header, tab_footer, checkbox_onoff, checkbox %}
|
{% from 'simple/macros.html' import tabs_open, tabs_close, tab_header, tab_footer, checkbox_onoff, checkbox %}
|
||||||
{% from 'simple/icons.html' import icon_big %}
|
{% from 'simple/icons.html' import icon_big %}
|
||||||
|
|
||||||
{% extends "simple/base.html" %}
|
{% extends "simple/page_with_header.html" %}
|
||||||
|
|
||||||
{%- macro plugin_preferences(section) -%}
|
{%- macro plugin_preferences(section) -%}
|
||||||
{%- for plugin in plugins -%}
|
{%- for plugin in plugins -%}
|
||||||
@ -95,10 +95,7 @@
|
|||||||
|
|
||||||
{% block head %} {% endblock %}
|
{% block head %} {% endblock %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
<h1>{{ _('Preferences') }}</h1>
|
||||||
<a href="{{ url_for('index') }}"><h1><span>SearXNG</span></h1></a>
|
|
||||||
|
|
||||||
<h2>{{ _('Preferences') }}</h2>
|
|
||||||
|
|
||||||
<form id="search_form" method="post" action="{{ url_for('preferences') }}">
|
<form id="search_form" method="post" action="{{ url_for('preferences') }}">
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{% from 'simple/icons.html' import icon_big %}
|
{% from 'simple/icons.html' import icon_big %}
|
||||||
{% from '__common__/new_issue.html' import new_issue with context %}
|
{% from '__common__/new_issue.html' import new_issue with context %}
|
||||||
|
|
||||||
{% extends "simple/base.html" %}
|
{% extends "simple/page_with_header.html" %}
|
||||||
|
|
||||||
{%- macro th_sort(column_order, column_name) -%}
|
{%- macro th_sort(column_order, column_name) -%}
|
||||||
{% if selected_engine_name %}
|
{% if selected_engine_name %}
|
||||||
@ -15,10 +15,7 @@
|
|||||||
|
|
||||||
{% block head %} {% endblock %}
|
{% block head %} {% endblock %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
<h1>{% if selected_engine_name %}<a href="{{ url_for('stats') }}">{% endif %}{{ _('Engine stats') }}{% if selected_engine_name %}</a> - {{ selected_engine_name }}{% endif %}</h1>
|
||||||
<a href="{{ url_for('index') }}"><h1><span>SearXNG</span></h1></a>
|
|
||||||
|
|
||||||
<h2>{% if selected_engine_name %}<a href="{{ url_for('stats') }}">{% endif %}{{ _('Engine stats') }}{% if selected_engine_name %}</a> - {{ selected_engine_name }}{% endif %}</h2>
|
|
||||||
|
|
||||||
{% if not engine_stats.get('time') %}
|
{% if not engine_stats.get('time') %}
|
||||||
{{ _('There is currently no data available. ') }}
|
{{ _('There is currently no data available. ') }}
|
||||||
|
Loading…
Reference in New Issue
Block a user