{% load manuals_tags seizou_icons %}{% comment %} manuals の一覧の行の部分。土台はこの部分を core/_rows.html より先に探す。 マニュアルの一覧 (manual_list) の最上位で、行が無く・検索の言葉が無く・子のフォルダがあるときだけ、 「このフォルダの直下にはマニュアルがありません。 フォルダを開いてください。」の空の枠を出す (最上位はフォルダに属さないマニュアルだけを並べるので、フォルダの中にあるのに「まだ 1 件もありません」と出ていた)。 フォルダの中で行が無いときは、空の枠の「新規登録」を ?folder=<今のフォルダ> つきにする (core の空の枠の新規登録は置き場を持たず、一番上に作られていた。作者の決め)。 それ以外は core/_rows.html をそのまま使う (版の一覧など、ほかの manuals の一覧も url_name で分けて今のまま)。 写した元: core/_rows.html の空の枠 (11-03 夜の main)。 {% endcomment %}{% if request.resolver_match.url_name == "manual_list" and not rows and not search_q %}{% folder_tree request.GET.folder as tree %}{% endif %} {% if tree and not tree.folder and tree.children %}
{% icon "inbox" "size-6" %}

このフォルダの直下にはマニュアルがありません。フォルダを開いてください。

{% manuals_in_folders as in_folders %}{% if in_folders %}

マニュアルはフォルダの中に {{ in_folders }} 件あります。

{% endif %}
{% if partial %}{% include "core/_list_meta.html" with oob=True %}{% endif %} {% elif tree and tree.folder %}
{% icon "inbox" "size-6" %}

このフォルダの直下にはまだ 1 件もありません。

{% if create_url %}

「新規登録」で、このフォルダの中に 1 件目を作ります。

{% icon "plus" "size-4" %}新規登録{% endif %}
{% if partial %}{% include "core/_list_meta.html" with oob=True %}{% endif %} {% else %}{% include "core/_rows.html" %}{% endif %}