{% extends "base.html" %} {% block main_content %}
{% if search_term is defined %} {% endif %}
{% if folders %}
{% if "files_ip" in request.url %} {% set tmp_path=cwd | replace( "static/Import", "" ) + "/" %} {% elif "files_sp" in request.url %} {% set tmp_path=cwd | replace( "static/Storage", "" ) + "/" %} {% elif "files_rbp" in request.url %} {% set tmp_path=cwd | replace( "static/Bin", "" ) + "/" %} {% endif %} {{tmp_path}}
{% endif %}
{{CreateSelect( "noo", noo, ["Oldest", "Newest"], "$('#offset').val(0)")|safe }} {{CreateSelect( "how_many", how_many, ["10", "25", "50", "75", "100", "150", "200", "500"])|safe }} {% if folders %} {{CreateFoldersSelect( folders )|safe }} {% else %} {{CreateFoldersSelect( folders )|safe }} grouped by: {{CreateSelect( "grouping", grouping, ["None", "Day", "Week", "Month"])|safe }} {% endif %}
{% if search_term is defined %}
Searched for: '{{search_term}}'
{% endif %}
 {{how_many}} files  {% if "files_rbp" in request.url %}
{% if size == "64" %} {% set bt="btn-info" %} {% else %} {% set bt="btn-outline-info" %} {% endif %}
{% if size == "96" %} {% set bt="btn-info" %} {% else %} {% set bt="btn-outline-info" %} {% endif %}
{% if size == "128" %} {% set bt="btn-info" %} {% else %} {% set bt="btn-outline-info" %} {% endif %}
{% if size == "192" %} {% set bt="btn-info" %} {% else %} {% set bt="btn-outline-info" %} {% endif %}
{% if size == "256" %} {% set bt="btn-info" %} {% else %} {% set bt="btn-outline-info" %} {% endif %}
{% set last = namespace(printed=0) %} {% if folders or grouping == "None" %}
{% endif %} {# rare event of empty folder, still need to show back button #} {% if folders and entry_data|length == 0 %} {% if cwd != root %}
Back
{% else %} {# create an even lighter-grey, unclickable back button - so folders dont jump around when you go into them #} {% endif %} {% endif %} {% for obj in entry_data %} {% if loop.index==1 and folders %} {% if cwd != root %}
Back
{% else %} {# create an even lighter-grey, unclickable back button - so folders dont jump around when you go into them #} {% endif %} {% endif %} {% if not folders and obj.type.name == "Directory" %} {% continue %} {% endif %} {% if grouping == "Day" %} {% if last.printed != obj.file_details.day %} {% if last.printed > 0 %}
{% endif %}
Day: {{obj.file_details.day}} of {{obj.file_details.month}}/{{obj.file_details.year}}
{% set last.printed = obj.file_details.day %} {% endif %} {% elif grouping == "Week" %} {% if last.printed != obj.file_details.woy %} {% if last.printed > 0 %}
{% endif %}
Week #: {{obj.file_details.woy}} of {{obj.file_details.year}}
{% set last.printed = obj.file_details.woy %} {% endif %} {% elif grouping == "Month" %} {% if last.printed != obj.file_details.month %} {% if last.printed > 0 %}
{% endif %}
Month: {{obj.file_details.month}} of {{obj.file_details.year}}
{% set last.printed = obj.file_details.month %} {% endif %} {% endif %} {% if obj.type.name != "Directory" %} {% if (not folders) or ((obj.in_dir.in_path.path_prefix+'/'+obj.in_dir.rel_path+'/'+obj.name) | TopLevelFolderOf(cwd)) %}
{% if obj.type.name=="Image" %}
{% if search_term is defined %}
{% endif %}
{% elif obj.type.name == "Video" %}
{% if search_term is defined %}
{% endif %}
{% endif %} {# finding text distracting,
{{obj.name}}
#}
{% endif %} {% else %} {% if folders %} {% if obj.dir_details.rel_path | length %} {% set dirname=obj.dir_details.in_path.path_prefix+'/'+obj.dir_details.rel_path %} {% else %} {% set dirname=obj.dir_details.in_path.path_prefix %} {% endif %} {# if this dir is the toplevel of the cwd, show the folder icon #} {% if dirname| TopLevelFolderOf(cwd) %}
{{obj.name}}
{% endif %} {% endif %} {% endif %} {% endfor %} {% if grouping == "None" %}
{% endif %}
{% if search_term is defined %} {% endif %}
{% if folders %}
{% if "files_ip" in request.url %} {% set tmp_path=cwd | replace( "static/Import", "" ) + "/" %} {% elif "files_sp" in request.url %} {% set tmp_path=cwd | replace( "static/Storage", "" ) + "/" %} {% elif "files_rbp" in request.url %} {% set tmp_path=cwd | replace( "static/Bin", "" ) + "/" %} {% endif %} {{tmp_path}}
{% endif %}
{{CreateSelect( "noo", noo, ["Oldest", "Newest"], "$('#offset').val(0)")|safe }} {{CreateSelect( "how_many", how_many, ["10", "25", "50", "75", "100", "150", "200", "500"])|safe }} {% if folders %} {{CreateFoldersSelect( folders )|safe }} {% else %} {{CreateFoldersSelect( folders )|safe }} grouped by: {{CreateSelect( "grouping", grouping, ["None", "Day", "Week", "Month"])|safe }} {% endif %}
{% if search_term is defined %}
Searched for: '{{search_term}}'
{% endif %}
 {{how_many}} files  {% if "files_rbp" in request.url %}
{% if size == "64" %} {% set bt="btn-info" %} {% else %} {% set bt="btn-outline-info" %} {% endif %}
{% if size == "96" %} {% set bt="btn-info" %} {% else %} {% set bt="btn-outline-info" %} {% endif %}
{% if size == "128" %} {% set bt="btn-info" %} {% else %} {% set bt="btn-outline-info" %} {% endif %}
{% if size == "192" %} {% set bt="btn-info" %} {% else %} {% set bt="btn-outline-info" %} {% endif %}
{% if size == "256" %} {% set bt="btn-info" %} {% else %} {% set bt="btn-outline-info" %} {% endif %}
{% endblock main_content %} {% block script_content %} {% endblock script_content %}