ii-assistent/hunter/templates/trend.html

3 lines
886 B
HTML

{% extends 'base.html' %}{% from 'macros.html' import page_header,signal_card,idea_card,bars,empty with context %}
{% block content %}{{ page_header(category,t('trend_hint')) }}<form method="post" action="{{ url_for('web.favorite',kind='trend',item_id=category_index) }}" class="action-row"><input type="hidden" name="csrf" value="{{ csrf }}"><button class="button primary">{{ t('unsubscribe' if following else 'subscribe') }}</button></form><p class="muted">{{ t('subscription_hint') }}</p><section class="panel"><h2>{{ t('monthly') }}</h2>{{ bars(months,t('monthly')) }}</section><h2>{{ t('opportunities') }}</h2><div class="ideas-grid">{% for item in related %}{{ idea_card(item) }}{% else %}{{ empty(true) }}{% endfor %}</div><h2>{{ t('materials') }}</h2><div class="news-grid">{% for item in signals %}{{ signal_card(item) }}{% else %}{{ empty() }}{% endfor %}</div>{% endblock %}