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.7 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="vbox">
12
<input type="text" name="q" placeholder="{% trans %}Search...{% endtrans %}" value="{{ query }}">
13
</form>
14
{% for post in results %}
15
<article class="card card-horizontal">
16
{% if post.state == 0 %}
17
<div class="card-top state-label" style="background: var(--color-done); color: var(--color-done-text);">
18
{% trans %}done{% endtrans %}
19
</div>
20
{% elif post.state == 1 %}
21
<div class="card-top state-label" style="background: var(--color-pending); color: var(--color-pending-text);">
22
{% trans %}active{% endtrans %}
23
</div>
24
{% endif %}
25
<section class="card-main">
26
<a href="/{{ username }}/{{ repository }}/forum/{{ post.number }}"><h2>{{ post.subject }}</h2></a>
27
<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>
28
<p>{{ post.html | safe }}</p>
29
</section>
30
</article>
31
{% endfor %}
32
</x-vbox>
33
{% include "pagination.html" %}
34
</x-frame>
35
</x-vbox>
36
{% endblock %}
37