{% init show_cdate = False %} {% init show_mdate = False %} {% init show_adate = False %} {% init show_action_time = False %} {% init show_hot_index = False %} {% init show_next = True %} {% init show_size = False %} {% init show_orderby = False %} {% init show_expand = False %} {% init orderby = "ctime_asc" %} {% init date_type = "" %} {% init ACTION_TEXT_MAP = { "create": "创建了笔记", "view": "查看了笔记", "edit": "更新了笔记" } %} {% init get_date_by_type = xutils.get_func_by_name("note.get_date_by_type") %} {% from handlers.note.dao_tag import get_tag_name_by_code %} {% init sticky_position = "left" %} {% set note_list_id = xutils.create_uuid() %} {% if len(files) == 0 %} {% include common/text/empty_text.html %} {% end %}
{% for item in files %} {% if hasattr(item, "hide") and item.hide %} {% continue %} {% end %} {% if hasattr(item, "roles") and item.roles != None and _user_role not in item.roles %} {% continue %} {% end %} {% if sticky_position == "left" %} {% if item.is_sticky %} 置顶 {% end %} {% if item.archived %} 归档 {% end %} {% if item.type == "alias" %} 别名 {% end %} {% end %} {{item.name}} {% include note/component/note_list_item_tags.html %}
{% if item.is_deleted %} 删除 {% end %} {% comment 新的角标统一使用badge_info %} {{item.badge_info}} {% if item.show_next or show_next %} {% end %}
{% end %} {% if show_expand %} {% include note/component/note_list_expand.html %} {% end %}