Skip to content

Commit 6e7f6a5

Browse files
committed
v0.4.3.2
Card markdown template tag
1 parent 7ce0c8f commit 6e7f6a5

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{% load trans from i18n %}
2+
{% load django_ledger %}
3+
4+
{% if style == 'card_1' %}
5+
<div class="card">
6+
<div class="card-header">
7+
<div class="card-header-title">
8+
<h1 class="is-size-3 has-text-weight-light">{% if title %}{{ title }}{% else %}
9+
{% trans 'Notes' %}
10+
{% endif %}</h1>
11+
</div>
12+
</div>
13+
<div class="card-content">
14+
<div class="content">
15+
{% if notes_html %}
16+
{% autoescape off %}
17+
{{ notes_html | safe }}
18+
{% endautoescape %}
19+
{% else %}
20+
<p>{% trans 'No available notes to display...' %}</p>
21+
{% endif %}
22+
</div>
23+
</div>
24+
</div>
25+
{% endif %}

0 commit comments

Comments
 (0)