Skip to content

Commit

Permalink
manage optional infos
Browse files Browse the repository at this point in the history
  • Loading branch information
albanm committed May 31, 2017
1 parent 42d1686 commit a574be2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/OpenApi.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@
<md-layout md-flex="5"></md-layout>
<md-layout md-column md-flex="20">
<md-layout md-flex="true"></md-layout>
<md-card>
<md-card v-if="api.info">
<md-list>
<md-list-item>
<md-icon>home</md-icon> <span><a :href="api.info.contact.url">{{api.info.contact.name}}</a></span>
<md-list-item v-if="api.info.contact && api.info.contact.url">
<md-icon>home</md-icon> <span><a :href="api.info.contact.url">{{api.info.contact.name || api.info.contact.url}}</a></span>
</md-list-item>
<md-list-item>
<md-list-item v-if="api.info.contact && api.info.contact.email">
<md-icon>email</md-icon> <span><a :href="'mailto:'+api.info.contact.email">{{api.info.contact.email}}</a></span>
</md-list-item>
<md-list-item>
<md-list-item v-if="api.info.version">
<md-icon>label</md-icon> <span>{{api.info.version}}</span>
</md-list-item>
<md-list-item>
<md-list-item v-if="api.info.termsOfService">
<md-icon>description</md-icon> <span><a :href="api.info.termsOfService">Terms of Service</a></span>
</md-list-item>
</md-list>
Expand Down

0 comments on commit a574be2

Please sign in to comment.