{% 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 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") %} {% init get_tag_name_by_code = xutils.get_func_by_name("note_tag.get_name_by_code") %} {% init sticky_position = "left" %} {% if False %}
上级目录
{% end %}
{% if len(files) == 0 %} {% include common/text/empty_text.html %} {% end %} {% if show_orderby and len(files) > 0 %} {% include note/component/sort/note_sort_tab.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" and item.priority>0 %} 置顶 {% end %} {{item.name}} {% if hasattr(item, "is_public") and item.is_public %} 分享中 {% end %} {% if sticky_position == "right" and item.priority>0 %} 置顶 {% end %} {% if item.tags != None %} {% for tag_code in item.tags %} {{get_tag_name_by_code(tag_code)}} {% end %} {% end %}
{% if item.is_deleted %} 删除 {% end %} {% comment 新的角标统一使用badge_info %} {{item.badge_info}} {% if item.show_next or show_next %} {% end %}
{% end %}