By using this site, you agree to have cookies stored on your device, strictly for functional purposes, such as storing your session and preferences.

Dismiss

 repo-forum-search.html

View raw Download
text/html • 1.83 kiB
HTML document, ASCII text
        
            
1
{% extends "repo.html" %}
2
{% set active_page = "forum" %}
3
4
{% block title %}
5
{% trans username=username, repository=repository %}Forum of {{ username }}/{{ repository }}{% endtrans %}
6
{% endblock %}
7
{% block content %}
8
<x-vbox>
9
<x-frame style="--width: 896px;" class="flexible-space">
10
<x-vbox>
11
<form class="hbox">
12
<input type="text" name="q" placeholder="{% trans %}Search...{% endtrans %}" value="{{ query }}" aria-label="{% trans %}Search query{% endtrans %}">
13
<button type="submit">{% trans %}Search{% endtrans %}</button>
14
</form>
15
{% for post in results %}
16
<article class="card card-horizontal">
17
{% if post.state == 0 %}
18
<div class="card-top state-label" style="background: var(--color-done); color: var(--color-done-text);">
19
{% trans %}done{% endtrans %}
20
</div>
21
{% elif post.state == 1 %}
22
<div class="card-top state-label" style="background: var(--color-pending); color: var(--color-pending-text);">
23
{% trans %}active{% endtrans %}
24
</div>
25
{% endif %}
26
<section class="card-main">
27
<a href="/{{ username }}/{{ repository }}/forum/{{ post.number }}"><h2>{{ post.subject }}</h2></a>
28
<p class="post-details"><a href="/{{ post.owner.username }}" class="post-author">{{ post.owner.username }}</a> &bull; {{ post.date | strftime("%A, %e %B %Y, %H:%M:%S") }}</p>
29
<p>{{ post.html | safe }}</p>
30
</section>
31
</article>
32
{% endfor %}
33
</x-vbox>
34
{% include "pagination.html" %}
35
</x-frame>
36
</x-vbox>
37
{% endblock %}
38