mirror of
https://github.com/perstarkse/minne.git
synced 2026-04-25 10:18:38 +02:00
refactor: extendable templates
refactor: simplification refactor: simplification
This commit is contained in:
18
html-router/templates/search/_layout.html
Normal file
18
html-router/templates/search/_layout.html
Normal file
@@ -0,0 +1,18 @@
|
||||
{% extends "body_base.html" %}
|
||||
|
||||
{% block title %}Minne - Search{% endblock %}
|
||||
|
||||
{% block main %}
|
||||
<div class="flex justify-center grow mt-2 sm:mt-4">
|
||||
<div class="container">
|
||||
<section class="mb-4">
|
||||
<div class="nb-panel p-3 flex items-center justify-between">
|
||||
{% block search_header %}
|
||||
{% endblock %}
|
||||
</div>
|
||||
</section>
|
||||
{% block search_results %}
|
||||
{% endblock %}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
@@ -1,17 +1,10 @@
|
||||
{% extends "body_base.html" %}
|
||||
{% extends "search/_layout.html" %}
|
||||
|
||||
{% block title %}Minne - Search{% endblock %}
|
||||
|
||||
{% block main %}
|
||||
<div class="flex justify-center grow mt-2 sm:mt-4">
|
||||
<div class="container">
|
||||
<section class="mb-4">
|
||||
<div class="nb-panel p-3 flex items-center justify-between">
|
||||
<h1 class="text-xl font-extrabold tracking-tight">Search</h1>
|
||||
<div class="text-xs opacity-70">Find documents, entities, and snippets</div>
|
||||
</div>
|
||||
</section>
|
||||
{% include "search/response.html" %}
|
||||
</div>
|
||||
</div>
|
||||
{% block search_header %}
|
||||
<h1 class="text-xl font-extrabold tracking-tight">Search</h1>
|
||||
<div class="text-xs opacity-70">Find documents, entities, and snippets</div>
|
||||
{% endblock %}
|
||||
|
||||
{% block search_results %}
|
||||
{% include "search/response.html" %}
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user