Browse Source

Adding deprecated indicator to operations

bubble
Chris Allen 10 years ago
parent
commit
20c555306f
2 changed files with 8 additions and 1 deletions
  1. +4
    -0
      src/main/html/css/screen.css
  2. +4
    -1
      src/main/template/operation.handlebars

+ 4
- 0
src/main/html/css/screen.css View File

@@ -669,6 +669,10 @@
.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading h3 span.path a:hover {
text-decoration: underline;
}
.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading h3 span.path a.deprecated {
color: #666666;
text-decoration: line-through;
}
.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading h3 span.http_method a {
text-transform: uppercase;
text-decoration: none;


+ 4
- 1
src/main/template/operation.handlebars View File

@@ -7,7 +7,7 @@
<a href='#!/{{parentId}}/{{nickname}}' class="toggleOperation">{{method}}</a>
</span>
<span class='path'>
<a href='#!/{{parentId}}/{{nickname}}' class="toggleOperation">{{path}}</a>
<a href='#!/{{parentId}}/{{nickname}}' class="toggleOperation {{#if deprecated}}deprecated{{/if}}">{{path}}</a>
</span>
</h3>
<ul class='options'>
@@ -17,6 +17,9 @@
</ul>
</div>
<div class='content' id='{{parentId}}_{{nickname}}_content' style='display:none'>
{{#if deprecated}}
<h4>Warning: Deprecated</h4>
{{/if}}
{{#if description}}
<h4>Implementation Notes</h4>
<p>{{{description}}}</p>


Loading…
Cancel
Save