Skip to content

Commit

Permalink
Use fancy index to display the file archive
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumep committed Feb 19, 2021
1 parent 008391f commit dcc1cb3
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
3 changes: 2 additions & 1 deletion INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ To update an existing installation, see [UPDATE.md](UPDATE.md).
Become root, then install the dependencies.

```
apt install mariadb-server nginx gdal-bin python3 python3-pip libmariadb-dev-compat
apt install mariadb-server nginx libnginx-mod-http-fancyindex gdal-bin python3 \
python3-pip libmariadb-dev-compat
# Invoke pip with 'python3 -m pip' to avoid a warning about a wrapper script
python3 -m pip install -U pip certifi
python3 -m pip install gunicorn
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

setuptools.setup(
name="souschef",
version="1.3.3.dev1",
version="1.3.3.dev2",
license="AGPL-3.0",
author="Santropol Roulant and Savoir Faire Linux",
author_email="[email protected]",
Expand Down
4 changes: 3 additions & 1 deletion souschef/configsamples/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ server {

location /archive {
alias /var/local/souschef;
autoindex on;
fancyindex on;
fancyindex_exact_size off;
fancyindex_localtime on;
}

location / {
Expand Down
5 changes: 3 additions & 2 deletions souschef/sous_chef/templates/system/menu.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ <h4 class="ui header name">
<a class="item" href="{% url 'delivery:order' %}"><i class="food icon"></i>{% trans 'Kitchen Count' %}</a>
<a class="item" href="{% url 'billing:list' %}"><i class="dollar icon"></i>{% trans 'Billing' %}</a>
{% if request.user.is_superuser %}<a class="item" href="{% url 'admin:index' %}"><i class="settings icon"></i>{% trans 'Admin' %}</a>{% endif %}
<!-- The archive link is served by nginx. It contains previously generated kitchen counts, labels and route reports. -->
<a class="item" href="/archive" target="_blank"><i class="folder icon"></i>{% trans 'Archive' %}</a>
<!-- The archive link is served by nginx and will not work in a development setup. -->
<!-- It contains previously generated kitchen counts, labels and route reports. -->
<a class="item" href="/archive/?C=M&O=D" target="_blank"><i class="folder icon"></i>{% trans 'Archive' %}</a>
<a href="{% url 'page:logout' %}" class="item"><i class="sign out icon"></i>{% trans 'Logout' %}</a>
</div>
<div class="item">
Expand Down

0 comments on commit dcc1cb3

Please sign in to comment.