Minor cosmetics

This commit is contained in:
voussoir 2017-05-06 17:04:42 -07:00
parent 824430dfa8
commit f8a78c6ee7
3 changed files with 3 additions and 4 deletions

View file

@ -9,7 +9,7 @@ Etiquette is a tag-based file organization system with a web front-end.
Documentation is still a work in progress. In general, I use:
- `python etiquette_site_launch.py [port]` to launch the flask server. Port defaults to 5000 if not provided.
- `python etiquette_flask_launch.py [port]` to launch the flask server. Port defaults to 5000 if not provided.
- `python -i etiquette_repl.py` to launch the Python interpreter with the PhotoDB pre-loaded into a variable called `P`. Try things like `P.new_photo` or `P.digest_directory`.
### To do list

View file

@ -19,7 +19,7 @@ from voussoirkit import pathclass
root_dir = pathclass.Path(__file__).parent.parent
print(root_dir)
TEMPLATE_DIR = root_dir.with_child('templates')
STATIC_DIR = root_dir.with_child('static')
FAVICON_PATH = STATIC_DIR.with_child('favicon.png')

View file

@ -47,9 +47,8 @@
</div>
</div>
<div class="photo_card_grid_file_metadata">
{% set tags = photo.tags() %}
{% set tag_names = [] %}
{% for tag in tags %}
{% for tag in photo.tags() %}
{% do tag_names.append(tag.name) %}
{% endfor %}
{% if tag_names %}