Minor cosmetics
parent
824430dfa8
commit
f8a78c6ee7
|
@ -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
|
||||||
|
|
|
@ -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')
|
||||||
|
|
|
@ -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 %}
|
||||||
|
|
Loading…
Reference in New Issue