github.com/kchristidis/fabric@v1.0.4-0.20171028114726-837acd08cde1/bddtests/templates/html/protobuf.html (about)

     1  <!--
     2  #
     3  # Copyright IBM Corp. All Rights Reserved.
     4  #
     5  # SPDX-License-Identifier: Apache-2.0
     6  #
     7  -->
     8  <div>
     9      {% set maxLength = 10*1024 %}
    10      {% if linkUrl %}
    11      <a href="{{ linkUrl }}" title="{{ linkTitle }}">{{ linkText }}</a>
    12      {% endif %}
    13      {% if msgLength < maxLength %}
    14      {% set msgAsText = "%s"|format(msg) %}
    15      {% set lines = msgAsText.split("\n") %}
    16      <div class="scrollBox">
    17          <code>
    18              {% for line in lines %}
    19  {{ line }}
    20              {% endfor %}
    21          </code>
    22      </div>
    23      {% else %}
    24      Not showing message, exceeded max lenth of {{ maxLength }} byes.
    25      {% endif %}
    26      {% if path_to_protobuf %}
    27  {% include 'html/protobuf-py.html' %}
    28      {% endif %}
    29  </div>