Merge pull request #847 from not-my-profile/simple-preferences-link

[simple] preferences link
This commit is contained in:
Martin Fischer 2022-02-01 06:27:13 +01:00 committed by GitHub
commit 8ae05f6ea5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 6 additions and 7 deletions

Binary file not shown.

View File

@ -1,9 +1,5 @@
#main_index { #main_index {
margin-top: 26vh; margin-top: 26vh;
#linkto_preferences {
.ltr-right(1.8rem);
}
} }
.index { .index {

View File

@ -576,7 +576,7 @@ article[data-vim-selected].category-social {
#linkto_preferences { #linkto_preferences {
position: absolute; position: absolute;
.ltr-right(10px); .ltr-right(1.8rem);
top: 2.2rem; top: 2.2rem;
padding: 0; padding: 0;
border: 0; border: 0;

View File

@ -47,6 +47,10 @@
</div> </div>
{% endif %} {% endif %}
{% block linkto_preferences %}
{% from 'simple/icons.html' import icon_big %}
<nav id="linkto_preferences"><a href="{{ url_for('preferences') }}" aria-label="{{ _('preferences') }}">{{ icon_big('menu-outline') }}</a></nav>
{% endblock %}
{% block header %} {% block header %}
{% endblock %} {% endblock %}
{% block content %} {% block content %}

View File

@ -4,7 +4,6 @@
<link rel="preload" href="{{ url_for('static', filename='img/searxng.png') }}" as="image" /> <link rel="preload" href="{{ url_for('static', filename='img/searxng.png') }}" as="image" />
{% endblock %} {% endblock %}
{% block content %} {% block content %}
<nav id="linkto_preferences"><a href="{{ url_for('preferences') }}">{{ icon_big('menu-outline') }}</a></nav>
<div class="index"> <div class="index">
<div class="title"><h1>SearXNG</h1></div> <div class="title"><h1>SearXNG</h1></div>
{% include 'simple/simple_search.html' %} {% include 'simple/simple_search.html' %}

View File

@ -94,6 +94,7 @@
{%- endmacro -%} {%- endmacro -%}
{% block head %} {% endblock %} {% block head %} {% endblock %}
{% block linkto_preferences %}{% endblock %}
{% block content %} {% block content %}
<h1>{{ _('Preferences') }}</h1> <h1>{{ _('Preferences') }}</h1>

View File

@ -10,7 +10,6 @@
{% block title %}{% if query_in_title %}{{- q|e }} - {% endif %}{% endblock %} {% block title %}{% if query_in_title %}{{- q|e }} - {% endif %}{% endblock %}
{% block meta %}<link rel="alternate" type="application/rss+xml" title="Searx search: {{ q|e }}" href="{{ url_for('search', _external=True) }}?q={{ q|urlencode }}&amp;categories={{ selected_categories|join(",") | replace(' ','+') }}&amp;pageno={{ pageno }}&amp;time_range={{ time_range }}&amp;language={{ current_language }}&amp;safesearch={{ safesearch }}&amp;format=rss">{% endblock %} {% block meta %}<link rel="alternate" type="application/rss+xml" title="Searx search: {{ q|e }}" href="{{ url_for('search', _external=True) }}?q={{ q|urlencode }}&amp;categories={{ selected_categories|join(",") | replace(' ','+') }}&amp;pageno={{ pageno }}&amp;time_range={{ time_range }}&amp;language={{ current_language }}&amp;safesearch={{ safesearch }}&amp;format=rss">{% endblock %}
{% block content %} {% block content %}
<nav id="linkto_preferences"><a href="{{ url_for('preferences') }}">{{ icon_big('menu-outline') }}</a></nav>
{% include 'simple/search.html' %} {% include 'simple/search.html' %}
{% if results and results|map(attribute='template')|unique|list|count == 1 %} {% if results and results|map(attribute='template')|unique|list|count == 1 %}