mirror of
https://gitee.com/koogua/course-tencent-cloud.git
synced 2025-06-23 20:00:27 +08:00
30 lines
610 B
Plaintext
30 lines
610 B
Plaintext
{%- macro publish_status(type) %}
|
|
{% if type == 1 %}
|
|
审核中
|
|
{% elseif type == 2 %}
|
|
已发布
|
|
{% elseif type == 3 %}
|
|
未通过
|
|
{% else %}
|
|
未知
|
|
{% endif %}
|
|
{%- endmacro %}
|
|
|
|
{%- macro source_type(type) %}
|
|
{% if type == 1 %}
|
|
原创
|
|
{% elseif type == 2 %}
|
|
转载
|
|
{% elseif type == 3 %}
|
|
翻译
|
|
{% else %}
|
|
N/A
|
|
{% endif %}
|
|
{%- endmacro %}
|
|
|
|
{%- macro tags_info(items) %}
|
|
{% for item in items %}
|
|
{% set comma = loop.last ? '' : ',' %}
|
|
{{ item.name ~ comma }}
|
|
{% endfor %}
|
|
{%- endmacro %} |