Compare commits
4 Commits
182d0c0c86
...
24a9683608
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
24a9683608 | ||
|
|
c7d484fa9a | ||
|
|
74655cc762 | ||
|
|
1bae00ea47 |
@ -74,7 +74,8 @@ def show_action(name):
|
||||
item["_all_traits"].append(_traits.get("rarity", {}).get("value", "unkown rarity"))
|
||||
item["_all_traits"] += _traits.get("value", [])
|
||||
item["_all_traits"] += _traits.get("custom").split(',')
|
||||
item["_all_traits"] = list(filter(lambda x: x != '', item["_all_traits"]))
|
||||
return render_template("action.html", action=item)
|
||||
|
||||
if __name__ == "__main__":
|
||||
app.run()
|
||||
app.run()
|
||||
@ -1,3 +1,6 @@
|
||||
body {
|
||||
background: #efece9;
|
||||
}
|
||||
|
||||
.action-icon {
|
||||
height: 26px;
|
||||
@ -7,4 +10,21 @@
|
||||
.sourcebook {
|
||||
text-align: right;
|
||||
font-size: 0.8em;
|
||||
}
|
||||
}
|
||||
|
||||
ul.traits {
|
||||
padding-left: 0em;
|
||||
}
|
||||
|
||||
li.trait {
|
||||
display: inline;
|
||||
font-size: 0.9em;
|
||||
font-variant: small-caps;
|
||||
color: #fefefe;
|
||||
background-color: #5e0000;
|
||||
border-color: #d8ce83;
|
||||
border-style: solid;
|
||||
border-width: 2px;
|
||||
padding: 0.1em 0.25em;
|
||||
margin: 0 0;
|
||||
}
|
||||
|
||||
@ -3,10 +3,10 @@
|
||||
{% block body %}
|
||||
<h1>{{action["name"]}}{{c.actions[action["_action_icon"]]|safe}}</h1>
|
||||
<ul class="traits">
|
||||
{%- for trait in action["_all_traits"] %}
|
||||
<li class="trait">{{trait|upper}}</li>
|
||||
{% endfor -%}
|
||||
{%- for trait in action["_all_traits"] -%}
|
||||
<li class="trait">{{trait|capitalize}}</li>
|
||||
{%- endfor -%}
|
||||
</ul>
|
||||
<p>{{action["data"]["description"]["value"]|filter_vtt|safe}}</p>
|
||||
{{action["data"]["description"]["value"]|filter_vtt|safe}}
|
||||
<p class="sourcebook">{{action["data"]["source"]["value"]}}</p>
|
||||
{% endblock %}
|
||||
Loading…
Reference in New Issue
Block a user