diff --git a/redstring/templates/base.jinja b/redstring/templates/base.jinja index 3517b05..0fe8f7d 100644 --- a/redstring/templates/base.jinja +++ b/redstring/templates/base.jinja @@ -70,6 +70,9 @@ display: block; -padding: 5px; } + div.tab-private { + font-style: italic; + } /* Content tables */ table.page-table { @@ -93,6 +96,9 @@ table.page-table tr.hide-tag-name td:nth-child(1) { display: none; } + table.page-table tr.private-tag td:nth-child(1) { + font-style: italic; + } table.page-table td { padding: 5px; } diff --git a/redstring/templates/doc.jinja b/redstring/templates/doc.jinja index cc5fb67..f2d8801 100644 --- a/redstring/templates/doc.jinja +++ b/redstring/templates/doc.jinja @@ -31,7 +31,7 @@ window.onload = function () { {% endblock page_scripts %} {% macro make_content_tab(tab, selected) -%} -
{{ tab.name }}
+
{{ tab.name }}
{%- endmacro %} {% macro make_tab_page(tab, selected) %} @@ -39,14 +39,20 @@ window.onload = function () { {% for tag in tab.tags %} {%- if not tag.options.private or edit -%} - +{% set classes = [] %} +{% if tab.options.hide_names %}{% set classes = classes + ['hide-tag-name'] %}{% endif %} +{% if tag.options.private and edit %}{% set classes = classes + ['private-tag'] %}{% endif %} + {%- endif -%} {% for subtag in tag.subtags %} {%- if (not tag.options.private and not subtag.options.private) or edit -%} - +{% set classes = [] %} +{% if tab.options.hide_names %}{% set classes = classes + ['hide-tag-name'] %}{% endif %} +{% if (tag.options.private or subtag.options.private) and edit %}{% set classes = classes + ['private-tag'] %}{% endif %} +
{{ tag.name }} {{ make_tag_value(tag) }}
{% if loop.last %}└{% else %}├{% endif %} {{ subtag.name }} {{ make_tag_value(subtag) }}