Sha256: 4f2c4369dc015d1f5146f9f485babd587b92296f10a8f4b877d1305d921c1794

Contents?: true

Size: 1.92 KB

Versions: 1

Compression:

Stored size: 1.92 KB

Contents

<div ng-if="error" class="alert alert-danger">
  <p>The requested controller could not be found.</p>
</div>
<div ng-if="controller">
  <div class="row">
    <div class="col-lg-12">
      <h1 class="page-header">
        {{ controller.name | resourceName }}
      </h1>
       <p ng-bind-html="controller.description | markdown"></p>
    </div>
  </div>
  <div class="row" ng-if="controller.actions.length">
    <div class="col-lg-12">
      <h2>Actions</h2>
      <div class="table-responsive">
      <table class="table table-striped table-bordered">
        <thead>
          <tr>
            <th>Name</th>
            <th>Route</th>
            <th>Description</th>
          </tr>
        </thead>
        <tbody>
          <tr ng-repeat="action in controller.actions">
            <td>
              <a ui-sref="root.controller.action({action: action.name, controller: controllerName, version: apiVersion})">{{ action.name }}</a>
            </td>
            <td>
              <div ng-repeat="url in action.urls">
                <div class="label label-default verb" ng-class="url.verb | lowercase">{{ url.verb }}</div>
                <strong>{{ url.path }}</strong>
              </div>
            </td>
            <td style="font-size: 110%;">
              <p ng-bind-html="action.description | markdown"></p>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
    </div>
  </div>
  <div ng-if="controller.media_type && controller.media_type.family != 'string'" ng-controller="TypeCtrl">
    <ng-include src="'views/type/details.html'" />
  </div>
  <div ng-if="controller.media_type && controller.media_type.family == 'string'">
    <h2>Schema</h2>
    <p ><b>Internet Media-type: {{ controller.media_type.identifier }}</b></p>
  </div>
  <h1>Actions</h1>
  <div ng-controller="ActionCtrl" ng-repeat="action in controller.actions">
    <div id="action-{{action.name}}" ng-include="'views/action.html'"></div>
  </div>
</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
praxis-0.18.1 lib/api_browser/app/views/controller.html