added logic for link

This commit is contained in:
Tony Tam
2014-09-25 21:02:31 -07:00
parent 0209cdd42b
commit 3492c72024
6 changed files with 1552 additions and 1599 deletions

770
dist/lib/swagger.js vendored

File diff suppressed because it is too large Load Diff

21
dist/swagger-ui.js vendored
View File

@@ -1073,6 +1073,17 @@ function program1(depth0,data) {
return " : ";
}
function program3(depth0,data) {
var buffer = "", stack1;
buffer += "<li>\n <a href='";
if (stack1 = helpers.url) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
else { stack1 = depth0.url; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
buffer += escapeExpression(stack1)
+ "'>Raw</a>\n </li>";
return buffer;
}
buffer += "<div class='heading'>\n <h2>\n <a href='#!/";
if (stack1 = helpers.id) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
else { stack1 = depth0.id; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
@@ -1114,11 +1125,13 @@ function program1(depth0,data) {
if (stack1 = helpers.id) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
else { stack1 = depth0.id; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
buffer += escapeExpression(stack1)
+ ">\n Expand Operations\n </a>\n </li>\n <li>\n <a href='";
if (stack1 = helpers.url) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
+ ">\n Expand Operations\n </a>\n </li>\n ";
options = {hash:{},inverse:self.noop,fn:self.program(3, program3, data),data:data};
if (stack1 = helpers.url) { stack1 = stack1.call(depth0, options); }
else { stack1 = depth0.url; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
buffer += escapeExpression(stack1)
+ "'>Raw</a>\n </li>\n </ul>\n</div>\n<ul class='endpoints' id='";
if (!helpers.url) { stack1 = blockHelperMissing.call(depth0, stack1, options); }
if(stack1 || stack1 === 0) { buffer += stack1; }
buffer += "\n </ul>\n</div>\n<ul class='endpoints' id='";
if (stack1 = helpers.id) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
else { stack1 = depth0.id; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
buffer += escapeExpression(stack1)

File diff suppressed because one or more lines are too long

View File

@@ -16,9 +16,9 @@
Expand Operations
</a>
</li>
<li>
{{#url}}<li>
<a href='{{url}}'>Raw</a>
</li>
</li>{{/url}}
</ul>
</div>
<ul class='endpoints' id='{{id}}_endpoint_list' style='display:none'>