-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding flex box design to the examples (#52)
- Loading branch information
1 parent
f696131
commit 355bfbe
Showing
5 changed files
with
185 additions
and
146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
<div class="section-block" ng-if="x.examples && x.examples.length > 0"> | ||
<h3 class="block-title">Examples</h5> | ||
<div class="rows mb-50" ng-repeat="example in x.examples"> | ||
<table class="table table-bordered"> | ||
<!-- Request Headers --> | ||
<tbody ng-if="example.request_headers"> | ||
<tr> | ||
<th>Request Headers</th> | ||
</tr> | ||
<tr> | ||
<td class="padding-15"> | ||
<div class="btn-group pull-right" role="group"> | ||
<button class="btn btn-default btn-sm" ng-click="viewRaw(example.request_headers)">Raw</button> | ||
<button class="btn btn-default btn-sm" ngclipboard data-clipboard-text="{{example.request_headers}}">Copy</button> | ||
</div> | ||
<div jq-json-viewer data="example.request_headers"></div> | ||
</td> | ||
</tr> | ||
</tbody> | ||
|
||
<!-- Request --> | ||
<tbody ng-if="example.request"> | ||
<tr> | ||
<th>Request</th> | ||
</tr> | ||
<tr> | ||
<td class="padding-15"> | ||
<div class="btn-group pull-right" role="group"> | ||
<button class="btn btn-default btn-sm" ng-click="viewRaw(example.request)">Raw</button> | ||
<button class="btn btn-default btn-sm" ngclipboard data-clipboard-text="{{example.request}}">Copy</button> | ||
</div> | ||
<div jq-json-viewer data="example.request"></div> | ||
</td> | ||
</tr> | ||
</tbody> | ||
|
||
<!-- Response Headers --> | ||
<tbody ng-if="example.response_headers"> | ||
<tr> | ||
<th>Response Headers</th> | ||
</tr> | ||
<tr> | ||
<td class="padding-15"> | ||
<div class="btn-group pull-right" role="group"> | ||
<button class="btn btn-default btn-sm" ng-click="viewRaw(example.response_headers)">Raw</button> | ||
<button class="btn btn-default btn-sm" ngclipboard data-clipboard-text="{{example.response_headers}}">Copy</button> | ||
</div> | ||
<div jq-json-viewer data="example.response_headers"></div> | ||
</td> | ||
</tr> | ||
</tbody> | ||
|
||
<!-- Response --> | ||
<tbody ng-if="example.response"> | ||
<tr> | ||
<th>Response</th> | ||
</tr> | ||
<tr> | ||
<td class="padding-15"> | ||
<div class="btn-group pull-right" role="group"> | ||
<button class="btn btn-default btn-sm" ng-click="viewRaw(example.response)">Raw</button> | ||
<button class="btn btn-default btn-sm" ngclipboard data-clipboard-text="{{example.response}}">Copy</button> | ||
</div> | ||
<div jq-json-viewer data="example.response"></div> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> |
Oops, something went wrong.