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;
|
||||
}
|
||||
|
||||
.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 {
|
||||
display: block;
|
||||
box-sizing: border-box;
|
||||
|
|
|
@ -5,6 +5,9 @@
|
|||
<span class="http-method" [ng-class]="data.method">{{data.method}}</span>
|
||||
<span class="path">{{data.path}}</span>
|
||||
</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"
|
||||
inner-html="{{data.methodInfo.description | marked}}">
|
||||
</p>
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<div class="methods">
|
||||
<div class="tag" *ng-for="#tag of data.tags">
|
||||
<div class="tag-info" [attr.tag]="tag.name">
|
||||
<a [attr.name]="tag.name"></a>
|
||||
<h1> {{tag.name}} </h1>
|
||||
<p *ng-if="tag.description" inner-html="{{ tag.description | marked }}"> </p>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue
Block a user