diff --git a/assets/css/devportal.css b/assets/css/devportal.css index 5b9657bdb4..8b435487f8 100644 --- a/assets/css/devportal.css +++ b/assets/css/devportal.css @@ -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) { diff --git a/dactyl-config.yml b/dactyl-config.yml index f538f6bc1b..08964be18f 100644 --- a/dactyl-config.yml +++ b/dactyl-config.yml @@ -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 diff --git a/tool/template-sidebar_nav.html b/tool/template-sidebar_nav.html index 80646f5b1d..c96359ca58 100644 --- a/tool/template-sidebar_nav.html +++ b/tool/template-sidebar_nav.html @@ -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 %} -
  • {{ page.name }}
  • +
  • {{ page.name }}{% if page.status == "not_enabled" %} {% include 'template-status_not_enabled.html' %}{% endif %}
  • {% else %} -
  • {{ page.name }}
  • +
  • {{ page.name }}{% if page.status == "not_enabled" %} {% include 'template-status_not_enabled.html' %}{% endif %}
  • {% endif %} {% endfor %} @@ -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 %} -
  • {{ page.name }}
  • +
  • {{ page.name }}{% if page.status == "not_enabled" %} {% include 'template-status_not_enabled.html' %}{% endif %}
  • {% else %} -
  • {{ page.name }}
  • +
  • {{ page.name }}{% if page.status == "not_enabled" %} {% include 'template-status_not_enabled.html' %}{% endif %}
  • {% endif %} {% elif page.subcategory not in printed_subcategories %} {% if page == currentpage %} -
  • {{ page.name }}
  • +
  • {{ page.name }}{% if page.status == "not_enabled" %} {% include 'template-status_not_enabled.html' %}{% endif %}
  • {% elif page.subcategory == currentpage.subcategory %} -
  • {{ page.name }}
  • +
  • {{ page.name }}{% if page.status == "not_enabled" %} {% include 'template-status_not_enabled.html' %}{% endif %}
  • {% else %} -
  • {{ page.name }}
  • +
  • {{ page.name }}{% if page.status == "not_enabled" %} {% include 'template-status_not_enabled.html' %}{% endif %}
  • {% endif %} {% for subpage in catpages|selectattr('subcategory', 'equalto', page.subcategory) %} {% if subpage != page %} {% if subpage == currentpage %} -
  • {{ subpage.name }}
  • +
  • {{ subpage.name }}{% if subpage.status == "not_enabled" %} {% include 'template-status_not_enabled.html' %}{% endif %}
  • {% else %} -
  • {{ subpage.name }}
  • +
  • {{ subpage.name }}{% if subpage.status == "not_enabled" %} {% include 'template-status_not_enabled.html' %}{% endif %}
  • {% 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 %} -
  • {{ subpage.name }}
  • +
  • {{ subpage.name }}{% if page.status == "not_enabled" %} {% include 'template-status_not_enabled.html' %}{% endif %}
  • {% set category_members = supercatpages|selectattr('category', 'equalto', subpage.category)|list %} {% for subsubpage in category_members %} {% if subsubpage != subpage and (subsubpage.subcategory is undefined or subsubpage == category_members|selectattr('subcategory', 'equalto', subsubpage.subcategory)|first) %} -
  • {{ subsubpage.name }}
  • +
  • {{ subsubpage.name }}{% if subsubpage.status == "not_enabled" %} {% include 'template-status_not_enabled.html' %}{% endif %}
  • {% 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 %} -
  • {{ page.name }}
  • +
  • {{ page.name }}{% if page.status == "not_enabled" %} {% include 'template-status_not_enabled.html' %}{% endif %}
  • {% else %} -
  • {{ page.name }}
  • +
  • {{ page.name }}{% if page.status == "not_enabled" %} {% include 'template-status_not_enabled.html' %}{% endif %}
  • {% endif %} {% elif page.subcategory not in printed_subcategories %} {% if page == currentpage %} -
  • {{ page.name }}
  • +
  • {{ page.name }}{% if page.status == "not_enabled" %} {% include 'template-status_not_enabled.html' %}{% endif %}
  • {% elif page.subcategory == currentpage.subcategory %} -
  • {{ page.name }}
  • +
  • {{ page.name }}{% if page.status == "not_enabled" %} {% include 'template-status_not_enabled.html' %}{% endif %}
  • {% else %} -
  • {{ page.name }}
  • +
  • {{ page.name }}{% if page.status == "not_enabled" %} {% include 'template-status_not_enabled.html' %}{% endif %}
  • {% endif %} {% for subpage in catpages|selectattr('subcategory', 'equalto', page.subcategory) %} {% if subpage != page %} {% if subpage == currentpage %} -
  • {{ subpage.name }}
  • +
  • {{ subpage.name }}{% if subpage.status == "not_enabled" %} {% include 'template-status_not_enabled.html' %}{% endif %}
  • {% else %} -
  • {{ subpage.name }}
  • +
  • {{ subpage.name }}{% if subpage.status == "not_enabled" %} {% include 'template-status_not_enabled.html' %}{% endif %}
  • {% endif %} {% endif %} {% endfor %} diff --git a/tool/template-status_not_enabled.html b/tool/template-status_not_enabled.html new file mode 100644 index 0000000000..1cb9813085 --- /dev/null +++ b/tool/template-status_not_enabled.html @@ -0,0 +1 @@ +