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 ------------------------------ */ /* Responsive design for different viewscreens ------------------------------ */
@media (max-width: 991px) { @media (max-width: 991px) {

View File

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

View File

@@ -39,9 +39,9 @@
{% for page in funnelpages %} {% for page in funnelpages %}
{% if loop.index == 1 %}{# Skip the first element since it's linked by the funnel header #} {% if loop.index == 1 %}{# Skip the first element since it's linked by the funnel header #}
{% elif page == currentpage %} {% 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 %} {% 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 %} {% endif %}
{% endfor %} {% endfor %}
</ul> </ul>
@@ -81,25 +81,25 @@
{% if loop.index != 1 %}{# Skip the first element since it's linked by the category header #} {% if loop.index != 1 %}{# Skip the first element since it's linked by the category header #}
{% if page.subcategory is undefined %} {% if page.subcategory is undefined %}
{% if page == currentpage %} {% 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 %} {% 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 %} {% endif %}
{% elif page.subcategory not in printed_subcategories %} {% elif page.subcategory not in printed_subcategories %}
{% if page == currentpage %} {% 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 %} {% 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 %} {% 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 %} {% endif %}
{% for subpage in catpages|selectattr('subcategory', 'equalto', page.subcategory) %} {% for subpage in catpages|selectattr('subcategory', 'equalto', page.subcategory) %}
{% if subpage != page %} {% if subpage != page %}
{% if subpage == currentpage %} {% 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 %} {% 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 %}
{% endif %} {% endif %}
{% endfor %} {% endfor %}
@@ -152,14 +152,14 @@
{% for subpage in supercatpages %} {% for subpage in supercatpages %}
{% if loop.index != 1 %}{# Skip the first element since it's linked by the supercategory header #} {% if loop.index != 1 %}{# Skip the first element since it's linked by the supercategory header #}
{% if subpage.category not in printed_categories %} {% 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 %} {% set category_members = supercatpages|selectattr('category', 'equalto', subpage.category)|list %}
<!-- DEBUG: category_members is {{ category_members }} --> <!-- DEBUG: category_members is {{ category_members }} -->
{% for subsubpage in category_members %} {% for subsubpage in category_members %}
{% if subsubpage != subpage and (subsubpage.subcategory is undefined or {% if subsubpage != subpage and (subsubpage.subcategory is undefined or
subsubpage == category_members|selectattr('subcategory', 'equalto', subsubpage.subcategory)|first) %} 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 %} {% endif %}
{% endfor %} {% endfor %}
{% set _ = printed_categories.append(subpage.category) %} {% 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 loop.index != 1 %}{# Skip the first element since it's linked by the category header #}
{% if page.subcategory is undefined %} {% if page.subcategory is undefined %}
{% if page == currentpage %} {% 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 %} {% 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 %} {% endif %}
{% elif page.subcategory not in printed_subcategories %} {% elif page.subcategory not in printed_subcategories %}
{% if page == currentpage %} {% 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 %} {% 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 %} {% 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 %} {% endif %}
{% for subpage in catpages|selectattr('subcategory', 'equalto', page.subcategory) %} {% for subpage in catpages|selectattr('subcategory', 'equalto', page.subcategory) %}
{% if subpage != page %} {% if subpage != page %}
{% if subpage == currentpage %} {% 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 %} {% 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 %}
{% endif %} {% endif %}
{% endfor %} {% 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>