github.com/leonlxy/hyperledger@v1.0.0-alpha.0.20170427033203-34922035d248/bddtests/templates/html/protobuf.html (about)

     1  <div>
     2      {% set maxLength = 10*1024 %}
     3      {% if linkUrl %}
     4      <a href="{{ linkUrl }}" title="{{ linkTitle }}">{{ linkText }}</a>
     5      {% endif %}
     6      {% if msgLength < maxLength %}
     7      {% set msgAsText = "%s"|format(msg) %}
     8      {% set lines = msgAsText.split("\n") %}
     9      <div class="scrollBox">
    10          <code>
    11              {% for line in lines %}
    12  {{ line }}
    13              {% endfor %}
    14          </code>
    15      </div>
    16      {% else %}
    17      Not showing message, exceeded max lenth of {{ maxLength }} byes.
    18      {% endif %}
    19      {% if path_to_protobuf %}
    20  {% include 'html/protobuf-py.html' %}
    21      {% endif %}
    22  </div>