Add tag list to method

This commit is contained in:
Roman Gotsiy 2015-10-30 11:43:51 +02:00
parent 8bc2d8f2bd
commit 7783d8dc17
3 changed files with 18 additions and 0 deletions

View File

@ -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;

View File

@ -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>

View File

@ -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>