{% extends "admin_base.html" %} {% set active = 'blocks' %} {% set btype = item['block_type'] %} {% block admin_content %}

{% if item.get('id') %}编辑区块{% else %}新增区块{% endif %}:{{ block_types[btype] }}

{% if error %}
{{ error }}
{% endif %}
{% if btype == 'category' %}

0 表示显示该分类全部软件;设置数量后板块右上角出现“更多”链接。

{% if not cats %}

还没有可用分类,请先到「板块管理」创建。

{% endif %} {% elif btype == 'vulns' %}

按发布时间倒序取最新通告,板块右上角带“更多”链接到漏洞管理页。

{% elif btype == 'announce' %} {% elif btype == 'links' %} {% elif btype == 'html' %} {% elif btype == 'hero' %}

横幅区块显示站点设置中的主标题、副标题与搜索框,无需其他配置。

{% elif btype == 'chips' %}

分类与标签条区块显示分类 chips 与热门标签行,无需其他配置。

{% endif %}
取消
{% if btype == 'links' %} {% endif %} {% endblock %}