Skip to content

Commit

Permalink
Update docs.html
Browse files Browse the repository at this point in the history
  • Loading branch information
dgtlntv committed Apr 29, 2024
1 parent 0eeae2e commit 1ce5d35
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions vanilla/templates/_layouts/docs.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,30 +81,30 @@
<div class="p-strip is-shallow u-no-padding--bottom">
<div class="u-fixed-width">
{% block content_title %}

{% if title %}
<h1>{{ title.split('|')[0] }}</h1>
{% endif %}

{% set status_labels = {
'braindump': 'Braindump',
'draft': 'Draft',
'review': 'Pending review',
'approved': 'Approved',
'completed': 'Completed',
'rejected': 'Rejected',
'outdated': 'Outdated',
'deprecated': 'Deprecated'
} %}

{% if status in ['braindump', 'draft', 'review'] %}
<div class="p-status-label p-status-label--caution">{{ status_labels[status] }}</div>
{% elif status in ['approved', 'completed'] %}
<div class="p-status-label p-status-label--positive">{{ status_labels[status] }}</div>
{% elif status in ['outdated', 'deprecated'] %}
<div class="p-status-label p-status-label--negative">{{ status_labels[status] }}</div>
{% endif %}

<div style="display: flex;">
{% if title %}
<h1>{{ title.split('|')[0] }}</h1>
{% endif %}

{% set status_labels = {
'braindump': 'Braindump',
'draft': 'Draft',
'review': 'Pending review',
'approved': 'Approved',
'completed': 'Completed',
'rejected': 'Rejected',
'outdated': 'Outdated',
'deprecated': 'Deprecated'
} %}

{% if status in ['braindump', 'draft', 'review'] %}
<div class="p-status-label p-status-label--caution">{{ status_labels[status] }}</div>
{% elif status in ['approved', 'completed'] %}
<div class="p-status-label p-status-label--positive">{{ status_labels[status] }}</div>
{% elif status in ['outdated', 'deprecated'] %}
<div class="p-status-label p-status-label--negative">{{ status_labels[status] }}</div>
{% endif %}
</div>
{% include "_layouts/_component_tabs.html" %}
{% if not page_tabs %}
<hr />
Expand Down

0 comments on commit 1ce5d35

Please sign in to comment.