Browse Source

Templates, yet again

imwald
Nuša Pukšič 3 months ago
parent
commit
fff45f71fd
  1. 1
      templates/components/SearchComponent.html.twig
  2. 2
      templates/feedback/form.html.twig
  3. 2
      templates/pages/search.html.twig

1
templates/components/SearchComponent.html.twig

@ -26,7 +26,6 @@
{% if not is_granted('IS_AUTHENTICATED_FULLY') %} {% if not is_granted('IS_AUTHENTICATED_FULLY') %}
<div class="notice info mb-5"> <div class="notice info mb-5">
<p>Log in to search articles.</p> <p>Log in to search articles.</p>
<small>Currently only available on desktop.</small>
</div> </div>
{% endif %} {% endif %}

2
templates/feedback/form.html.twig

@ -4,6 +4,7 @@
{% block body %} {% block body %}
<div class="w-container mt-5"> <div class="w-container mt-5">
<twig:Atoms:PageHeading heading="Feedback" tagline="Bug reports and feature requests welcome"/> <twig:Atoms:PageHeading heading="Feedback" tagline="Bug reports and feature requests welcome"/>
<section>
<form data-controller="nostr-single-sign" data-nostr-single-sign-event-value='{{ { <form data-controller="nostr-single-sign" data-nostr-single-sign-event-value='{{ {
"kind": 24, "kind": 24,
"tags": [...recipients|map(r => ["p", r]), ['client', 'Decent Newsroom']], "tags": [...recipients|map(r => ["p", r]), ['client', 'Decent Newsroom']],
@ -29,6 +30,7 @@
<h5 class="mt-4">Preview</h5> <h5 class="mt-4">Preview</h5>
<pre data-nostr-single-sign-target="computedPreview" class="bg-light p-2"></pre> <pre data-nostr-single-sign-target="computedPreview" class="bg-light p-2"></pre>
</form> </form>
</section>
</div> </div>
{% endblock %} {% endblock %}

2
templates/pages/search.html.twig

@ -10,7 +10,9 @@
<p class="eyebrow">hidden gems</p> <p class="eyebrow">hidden gems</p>
</div> </div>
</section> </section>
<section>
<twig:SearchComponent /> <twig:SearchComponent />
</section>
{% endblock %} {% endblock %}
{% block aside %} {% block aside %}

Loading…
Cancel
Save