mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-22 08:36:33 +03:00
Add tag list to method
This commit is contained in:
parent
8bc2d8f2bd
commit
7783d8dc17
|
@ -18,6 +18,20 @@ h3 > span {
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.method-tags {
|
||||||
|
margin-top: 10px;
|
||||||
|
color: #666;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.method-tags a {
|
||||||
|
color: #666;
|
||||||
|
font-weight: bold;
|
||||||
|
display: inline-block;
|
||||||
|
padding: 0 5px;
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
|
||||||
.content, .samples {
|
.content, .samples {
|
||||||
display: block;
|
display: block;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
|
|
@ -5,6 +5,9 @@
|
||||||
<span class="http-method" [ng-class]="data.method">{{data.method}}</span>
|
<span class="http-method" [ng-class]="data.method">{{data.method}}</span>
|
||||||
<span class="path">{{data.path}}</span>
|
<span class="path">{{data.path}}</span>
|
||||||
</h3>
|
</h3>
|
||||||
|
<div class="method-tags"> Tags:
|
||||||
|
<a *ng-for="#tag of data.methodInfo.tags" attr.href="#{{tag}}"> {{tag}} </a>
|
||||||
|
</div>
|
||||||
<p *ng-if="data.methodInfo.description" class="method-description"
|
<p *ng-if="data.methodInfo.description" class="method-description"
|
||||||
inner-html="{{data.methodInfo.description | marked}}">
|
inner-html="{{data.methodInfo.description | marked}}">
|
||||||
</p>
|
</p>
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
<div class="methods">
|
<div class="methods">
|
||||||
<div class="tag" *ng-for="#tag of data.tags">
|
<div class="tag" *ng-for="#tag of data.tags">
|
||||||
<div class="tag-info" [attr.tag]="tag.name">
|
<div class="tag-info" [attr.tag]="tag.name">
|
||||||
|
<a [attr.name]="tag.name"></a>
|
||||||
<h1> {{tag.name}} </h1>
|
<h1> {{tag.name}} </h1>
|
||||||
<p *ng-if="tag.description" inner-html="{{ tag.description | marked }}"> </p>
|
<p *ng-if="tag.description" inner-html="{{ tag.description | marked }}"> </p>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user