{% extends "layouts/base.html" %} {% block main_content %} {% set breadcrumbs = [ {"name": t('nav.home'), "url": "/", "icon": "fas fa-home"}, {"name": t('nav.rules'), "icon": "fas fa-book"} ] %} {% set header_title = t('nav.rules') %} {% set header_subtitle = t('rules.title') %} {% set header_icon = "fas fa-book" %} {% set header_actions = [ { "type": "button", "text": t('rules.new'), "url": "/rules/new", "icon": "fas fa-plus", "style": "primary" }, { "type": "dropdown", "text": t('common.actions'), "icon": "fas fa-ellipsis-v", "style": "secondary", "items": [ {"text": t('rules.builder'), "url": "/rules/builder", "icon": "fas fa-puzzle-piece"}, {"text": t('common.import'), "url": "/rules/import", "icon": "fas fa-upload"}, {"text": t('common.export'), "url": "/rules/export", "icon": "fas fa-download"}, {"text": t('nav.settings'), "url": "/settings", "icon": "fas fa-cog"} ] } ] %} {% include "components/page_header.html" %}
{{ rule.title }}
{{ rule.description or rule.content[:150] + '...' if rule.content|length > 150 else rule.content }}
{{ t('rules.showing_results', count_start=1, count_end=rules|length, total=rules|length) }}
{{ t('rules.get_started_message') }}