Browse Source

Add token image names for reference, cursor hover over image card

master
Brandon Cornejo 4 years ago
parent
commit
7a0e6a6e6a
  1. 3
      acks/templates/player_tokens.html
  2. 2
      acks/views.py

3
acks/templates/player_tokens.html

@ -32,6 +32,9 @@
{% block head %}
<style>
div.acks-npc-card:hover {
cursor: pointer;
}
div.acks-npc-card > div > div > div > img.category-thumbnail {
width: 150px;
height: 150px;

2
acks/views.py

@ -48,7 +48,7 @@ def token_gallery():
base_url = "https://www.atr0phy.net/acks/img/player_tokens/"
def to_gallery_src(src):
return {"src": src, "thumb": src}
return {"src": src, "thumb": src, "subHtml": "<h4>{}</h4>".format(src.rpartition('/')[2])}
tokens = {}
parent_fs = Path(base_path)

Loading…
Cancel
Save