Initial commit
This commit is contained in:
commit
97e799fd52
61 changed files with 2252 additions and 0 deletions
13
yksa_web/templates/yksa/ui/_page_title.html
Normal file
13
yksa_web/templates/yksa/ui/_page_title.html
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{% comment %}
|
||||
Always h1.h3, so pages cannot drift apart. Heading rank is structural; size is
|
||||
fixed. Never pick a heading level for its size.
|
||||
|
||||
{% trans "Widgets" as parent %}{% url 'public:widget-list' as parent_url %}
|
||||
{% include "yksa/ui/_page_title.html" with title=widget.name parent=parent parent_url=parent_url %}
|
||||
|
||||
Put it inside the page header's flex row; the row owns the actions on the right.
|
||||
{% endcomment %}
|
||||
<h1 class="h3 mb-0">
|
||||
{% if parent %}<a class="text-decoration-none" href="{{ parent_url }}">{{ parent }}</a> / {% endif %}{{ title }}
|
||||
</h1>
|
||||
{% if subtitle %}<span class="text-body-secondary small">{{ subtitle }}</span>{% endif %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue