Sha256: 04c3f8dc3c826e224953630c4df04d2a4ed0728b69a854f97479f365719442f1

Contents?: true

Size: 1.95 KB

Versions: 2

Compression:

Stored size: 1.95 KB

Contents

<!-- Tabs -->
<ul class="nav nav-tabs" role="tablist">
  <li class="nav-item" role="presentation">
    <a class="nav-link active" data-toggle="tab" href="#request-{{$ctrl.index}}" role="tab" aria-controls="request-{{$ctrl.index}}" aria-selected="true">Request</a>
  </li>
  <li class="nav-item" role="presentation">
    <a class="nav-link" id="profile-tab" data-toggle="tab" href="#response-{{$ctrl.index}}" role="tab" aria-controls="response-{{$ctrl.index}}" aria-selected="false">Response</a>
  </li>
</ul>

<div class="tab-content">
  <!-- Request -->
  <div class="tab-pane fade show active" id="request-{{$ctrl.index}}" role="tabpanel" aria-labelledby="request-{{$ctrl.index}}">
    <!-- Headers -->
    <ad-headers headers="$ctrl.doc.header" ng-if="$ctrl.doc.header"></ad-headers>

    <!-- Parameters -->
    <ad-parameters params="$ctrl.doc.params" ng-if="$ctrl.doc.params && $ctrl.doc.params.length > 0"></ad-parameters>

    <!-- Examples -->
    <div
      ng-if="$ctrl.doc.examples && $ctrl.doc.examples.length > 0"
      ng-repeat="example in $ctrl.doc.examples">
      <!-- Headers -->
      <ad-example-headers
        headers="example.request_headers"
        ng-if="example.request_headers">
      </ad-example-headers>

      <!-- Body -->
      <ad-example-body
        body="example.request"
        ng-if="example.request">
      </ad-example-body>
    </div>
  </div>

  <!-- Response -->
  <div class="tab-pane fade" id="response-{{$ctrl.index}}" role="tabpanel" aria-labelledby="response-{{$ctrl.index}}">
    <!-- Examples -->
    <div
      ng-if="$ctrl.doc.examples && $ctrl.doc.examples.length > 0"
      ng-repeat="example in $ctrl.doc.examples">
      <!-- Headers -->
      <ad-example-headers
        headers="example.response_headers"
        ng-if="example.response_headers">
      </ad-example-headers>

      <!-- Body -->
      <ad-example-body
        body="example.response"
        ng-if="example.response">
      </ad-example-body>
    </div>
  </div>
</div>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
apidoco-1.6.3 app/assets/javascripts/apidoco/components/tabbed/ad-tabbed.html
apidoco-1.6.2 app/assets/javascripts/apidoco/components/tabbed/ad-tabbed.html