Sha256: 090169dbb8760847c054e095c36875b19d3aa93f11d172c61949b2f53af552fb

Contents?: true

Size: 1.1 KB

Versions: 6

Compression:

Stored size: 1.1 KB

Contents

<div class="row">
  <div>
    <ul class="nav nav-tabs">
      <% if @json_payload.present? %>
        <li class="nav-item">
          <a class="nav-link active" href="#tab-json" data-bs-toggle="tab" role="tab">
            .json
          </a>
        </li>
      <% end %>
      <% if @xml_payload.present? %>
        <li class="nav-item">
          <a class="nav-link" href="#tab-xml" data-bs-toggle="tab" role="tab">
            .xml
          </a>
        </li>
      <% end %>
    </ul>
  </div>
  <div class="tab-content">
    <div class="tab-pane fade show active" id="tab-json" role="tabpanel">
      <% if @json_payload.present? %>
        <div><pre class="rrf-copy"><code class="language-json"><%=
          JSON.pretty_generate(JSON.parse(@json_payload)) unless @json_payload == ""
        %></code></pre></div>
      <% end %>
    </div>
    <div class="tab-pane fade" id="tab-xml" role="tabpanel">
      <% if @xml_payload.present? %>
        <div><pre class="rrf-copy"><code class="language-xml"><%=
          CGI.unescapeHTML(@xml_payload)
        %></code></pre></div>
      <% end %>
    </div>
  </div>
</div>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rest_framework-0.9.14 app/views/rest_framework/_payloads.html.erb
rest_framework-0.9.12.pre.1.pre.g39306cb app/views/rest_framework/_payloads.html.erb
rest_framework-0.9.11.pre.40.pre.g5dcad32 app/views/rest_framework/_payloads.html.erb
rest_framework-0.9.11 app/views/rest_framework/_payloads.html.erb
rest_framework-0.9.10 app/views/rest_framework/_payloads.html.erb
rest_framework-0.9.9 app/views/rest_framework/_payloads.html.erb