Add flask icon to sidebar for features not enabled

This commit is contained in:
mDuo13
2019-01-28 22:09:04 -08:00
parent 8b72608144
commit cefc36510b
4 changed files with 43 additions and 18 deletions

View File

@@ -989,6 +989,19 @@ a.current {
}
/* Status labels ("DEV" etc) for non-enabled features ----------------------- */
.status {
cursor: help;
padding: 1px 2px;
font-weight: normal;
text-indent: 0;
}
.status.not_enabled {
color: #0F72E5;
}
/* Responsive design for different viewscreens ------------------------------ */
@media (max-width: 991px) {

View File

@@ -273,6 +273,7 @@ pages:
doc_type: Concepts
category: Complex Payment Types
blurb: Checks let users create deferred payments that can be canceled or cashed by the intended recipients.
status: not_enabled
targets:
- local
@@ -811,6 +812,7 @@ pages:
category: Use Complex Payment Types
subcategory: Use Checks
blurb: Checks in the XRP Ledger authorize another account to claim funds later, similar to how personal paper checks work.
status: not_enabled
template: template-landing-children.html
targets:
- local
@@ -821,6 +823,7 @@ pages:
doc_type: Tutorials
category: Use Complex Payment Types
subcategory: Use Checks
status: not_enabled
targets:
- local
@@ -830,6 +833,7 @@ pages:
doc_type: Tutorials
category: Use Complex Payment Types
subcategory: Use Checks
status: not_enabled
targets:
- local
@@ -839,6 +843,7 @@ pages:
doc_type: Tutorials
category: Use Complex Payment Types
subcategory: Use Checks
status: not_enabled
targets:
- local
@@ -848,6 +853,7 @@ pages:
doc_type: Tutorials
category: Use Complex Payment Types
subcategory: Use Checks
status: not_enabled
targets:
- local
@@ -857,6 +863,7 @@ pages:
doc_type: Tutorials
category: Use Complex Payment Types
subcategory: Use Checks
status: not_enabled
targets:
- local
@@ -866,6 +873,7 @@ pages:
doc_type: Tutorials
category: Use Complex Payment Types
subcategory: Use Checks
status: not_enabled
targets:
- local
@@ -2365,6 +2373,7 @@ pages:
category: Transaction Formats
subcategory: Transaction Types
blurb: Cancel a check.
status: not_enabled
targets:
- local
@@ -2376,6 +2385,7 @@ pages:
category: Transaction Formats
subcategory: Transaction Types
blurb: Redeem a check.
status: not_enabled
targets:
- local
@@ -2387,6 +2397,7 @@ pages:
category: Transaction Formats
subcategory: Transaction Types
blurb: Create a check.
status: not_enabled
targets:
- local

View File

@@ -39,9 +39,9 @@
{% for page in funnelpages %}
{% if loop.index == 1 %}{# Skip the first element since it's linked by the funnel header #}
{% elif page == currentpage %}
<li><a class="active nosubcat-page" href="{{ page.html }}">{{ page.name }}</a></li>
<li><a class="active nosubcat-page" href="{{ page.html }}">{{ page.name }}{% if page.status == "not_enabled" %} {% include 'template-status_not_enabled.html' %}{% endif %}</a></li>
{% else %}
<li><a class="nosubcat-page" href="{{ page.html }}">{{ page.name }}</a></li>
<li><a class="nosubcat-page" href="{{ page.html }}">{{ page.name }}{% if page.status == "not_enabled" %} {% include 'template-status_not_enabled.html' %}{% endif %}</a></li>
{% endif %}
{% endfor %}
</ul>
@@ -81,25 +81,25 @@
{% if loop.index != 1 %}{# Skip the first element since it's linked by the category header #}
{% if page.subcategory is undefined %}
{% if page == currentpage %}
<li><a class="active nosubcat-page" href="{{ page.html }}">{{ page.name }}</a></li>
<li><a class="active nosubcat-page" href="{{ page.html }}">{{ page.name }}{% if page.status == "not_enabled" %} {% include 'template-status_not_enabled.html' %}{% endif %}</a></li>
{% else %}
<li><a class="nosubcat-page" href="{{ page.html }}">{{ page.name }}</a></li>
<li><a class="nosubcat-page" href="{{ page.html }}">{{ page.name }}{% if page.status == "not_enabled" %} {% include 'template-status_not_enabled.html' %}{% endif %}</a></li>
{% endif %}
{% elif page.subcategory not in printed_subcategories %}
{% if page == currentpage %}
<li><a class="subcat-title active" href="#main_content_body">{{ page.name }}</a></li>
<li><a class="subcat-title active" href="#main_content_body">{{ page.name }}{% if page.status == "not_enabled" %} {% include 'template-status_not_enabled.html' %}{% endif %}</a></li>
{% elif page.subcategory == currentpage.subcategory %}
<li><a class="subcat-title active-parent" href="{{ page.html }}">{{ page.name }}</a></li>
<li><a class="subcat-title active-parent" href="{{ page.html }}">{{ page.name }}{% if page.status == "not_enabled" %} {% include 'template-status_not_enabled.html' %}{% endif %}</a></li>
{% else %}
<li><a class="subcat-title" href="{{ page.html }}">{{ page.name }}</a></li>
<li><a class="subcat-title" href="{{ page.html }}">{{ page.name }}{% if page.status == "not_enabled" %} {% include 'template-status_not_enabled.html' %}{% endif %}</a></li>
{% endif %}
{% for subpage in catpages|selectattr('subcategory', 'equalto', page.subcategory) %}
{% if subpage != page %}
{% if subpage == currentpage %}
<li><a class="active subpage" href="#main_content_body">{{ subpage.name }}</a></li>
<li><a class="active subpage" href="#main_content_body">{{ subpage.name }}{% if subpage.status == "not_enabled" %} {% include 'template-status_not_enabled.html' %}{% endif %}</a></li>
{% else %}
<li><a class="subpage" href="{{ subpage.html }}">{{ subpage.name }}</a></li>
<li><a class="subpage" href="{{ subpage.html }}">{{ subpage.name }}{% if subpage.status == "not_enabled" %} {% include 'template-status_not_enabled.html' %}{% endif %}</a></li>
{% endif %}
{% endif %}
{% endfor %}
@@ -152,14 +152,14 @@
{% for subpage in supercatpages %}
{% if loop.index != 1 %}{# Skip the first element since it's linked by the supercategory header #}
{% if subpage.category not in printed_categories %}
<li><a class="subcat-title" href="{{ subpage.html }}">{{ subpage.name }}</a></li>
<li><a class="subcat-title" href="{{ subpage.html }}">{{ subpage.name }}{% if page.status == "not_enabled" %} {% include 'template-status_not_enabled.html' %}{% endif %}</a></li>
{% set category_members = supercatpages|selectattr('category', 'equalto', subpage.category)|list %}
<!-- DEBUG: category_members is {{ category_members }} -->
{% for subsubpage in category_members %}
{% if subsubpage != subpage and (subsubpage.subcategory is undefined or
subsubpage == category_members|selectattr('subcategory', 'equalto', subsubpage.subcategory)|first) %}
<li><a class="subpage" href="{{ subsubpage.html }}">{{ subsubpage.name }}</a></li>
<li><a class="subpage" href="{{ subsubpage.html }}">{{ subsubpage.name }}{% if subsubpage.status == "not_enabled" %} {% include 'template-status_not_enabled.html' %}{% endif %}</a></li>
{% endif %}
{% endfor %}
{% set _ = printed_categories.append(subpage.category) %}
@@ -203,25 +203,25 @@
{% if loop.index != 1 %}{# Skip the first element since it's linked by the category header #}
{% if page.subcategory is undefined %}
{% if page == currentpage %}
<li><a class="active nosubcat-page" href="{{ page.html }}">{{ page.name }}</a></li>
<li><a class="active nosubcat-page" href="{{ page.html }}">{{ page.name }}{% if page.status == "not_enabled" %} {% include 'template-status_not_enabled.html' %}{% endif %}</a></li>
{% else %}
<li><a class="nosubcat-page" href="{{ page.html }}">{{ page.name }}</a></li>
<li><a class="nosubcat-page" href="{{ page.html }}">{{ page.name }}{% if page.status == "not_enabled" %} {% include 'template-status_not_enabled.html' %}{% endif %}</a></li>
{% endif %}
{% elif page.subcategory not in printed_subcategories %}
{% if page == currentpage %}
<li><a class="subcat-title active" href="#main_content_body">{{ page.name }}</a></li>
<li><a class="subcat-title active" href="#main_content_body">{{ page.name }}{% if page.status == "not_enabled" %} {% include 'template-status_not_enabled.html' %}{% endif %}</a></li>
{% elif page.subcategory == currentpage.subcategory %}
<li><a class="subcat-title active-parent" href="{{ page.html }}">{{ page.name }}</a></li>
<li><a class="subcat-title active-parent" href="{{ page.html }}">{{ page.name }}{% if page.status == "not_enabled" %} {% include 'template-status_not_enabled.html' %}{% endif %}</a></li>
{% else %}
<li><a class="subcat-title" href="{{ page.html }}">{{ page.name }}</a></li>
<li><a class="subcat-title" href="{{ page.html }}">{{ page.name }}{% if page.status == "not_enabled" %} {% include 'template-status_not_enabled.html' %}{% endif %}</a></li>
{% endif %}
{% for subpage in catpages|selectattr('subcategory', 'equalto', page.subcategory) %}
{% if subpage != page %}
{% if subpage == currentpage %}
<li><a class="active subpage" href="#main_content_body">{{ subpage.name }}</a></li>
<li><a class="active subpage" href="#main_content_body">{{ subpage.name }}{% if subpage.status == "not_enabled" %} {% include 'template-status_not_enabled.html' %}{% endif %}</a></li>
{% else %}
<li><a class="subpage" href="{{ subpage.html }}">{{ subpage.name }}</a></li>
<li><a class="subpage" href="{{ subpage.html }}">{{ subpage.name }}{% if subpage.status == "not_enabled" %} {% include 'template-status_not_enabled.html' %}{% endif %}</a></li>
{% endif %}
{% endif %}
{% endfor %}

View File

@@ -0,0 +1 @@
<span class="status not_enabled" title="This feature is not currently enabled on the production XRP Ledger."><i class="fa fa-flask"></i></span>