Minor cosmetics

master
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: 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`. - `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 ### To do list

View File

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

View File

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