6 lines
1.2 KiB
HTML
6 lines
1.2 KiB
HTML
{% extends 'base.html' %}{% from 'macros.html' import page_header,idea_card,empty with context %}
|
|
{% block content %}{{ page_header(t(page),t('weekly_hint')) }}
|
|
{% if followed is defined %}<div class="topic-tabs">{% for category in followed %}<a class="topic-tab" href="{{ url_for('web.trend',category=category) }}">◎ {{ category }}</a>{% endfor %}</div>{% endif %}
|
|
{% if page=='ideas' %}<form class="filter-panel panel" method="get"><label class="search-label">{{ t('search') }}<input name="q" value="{{ request.args.get('q','') }}" placeholder="{{ t('search_hint') }}"></label><label>{{ t('category') }}<select name="category"><option value="">{{ t('all') }}</option>{% for category in categories %}<option {{ 'selected' if request.args.get('category')==category }}>{{ category }}</option>{% endfor %}</select></label><button class="button primary">{{ t('apply') }}</button></form>{% if user.role in ['admin','analyst'] %}<form method="post" action="{{ url_for('web.analyze') }}" class="action-row"><input type="hidden" name="csrf" value="{{ csrf }}"><button class="button secondary">✧ {{ t('analyze') }}</button></form>{% endif %}{% endif %}
|
|
<div class="ideas-grid">{% for item in ideas %}{{ idea_card(item) }}{% else %}{{ empty(true) }}{% endfor %}</div>{% endblock %}
|