{% extends 'dataviewer/base.html' %}

{% block subtitle %}{% endblock %}

{% block page %}
  <style>
    .alert-error {
      background-color: #ffdcdc;
      border: 1px solid #ff5353;
      color: #333;
    }
    .alert-warning {
      background-color: #ffdd8f;
      border: 1px solid #f8ca00;
      color: #665100;
    }
    .alert {
      margin-top: 20px;
      padding: 15px;
      margin-bottom: 22px;
      border-radius: 4px;
    }
  </style>
  <div>
    {% if resource.size < 500 * 1024 %}
      {{ h.render_wsdl_resource(resource)|safe }}
    {% else %}
    <div class="alert alert-warning">{% trans %}File size too large for preview, download the file to view its contents.{% endtrans %}</div>
    {% endif %}
  </div>
{% endblock %}

{% extends 'dataviewer/base.html' %}

{% block subtitle %}{% endblock %}

{% block page %}
  <style>
    .alert-error {
      background-color: #ffdcdc;
      border: 1px solid #ff5353;
      color: #333;
    }
    .alert-warning {
      background-color: #ffdd8f;
      border: 1px solid #f8ca00;
      color: #665100;
    }
    .alert {
      margin-top: 20px;
      padding: 15px;
      margin-bottom: 22px;
      border-radius: 4px;
    }
  </style>
  <div>
    {% if resource.size < 500 * 1024 %}
      {{ h.render_wsdl_resource(resource)|safe }}
    {% else %}
    <div class="alert alert-warning">{% trans %}File size too large for preview, download the file to view its contents.{% endtrans %}</div>
    {% endif %}
  </div>
{% endblock %}

{%  block styles %}
    {%  resource "apicatalog_ui/ckan" %}
{%  endblock %}
Add common styles to wsdl view
Add common styles to wsdl view
