From af6eed4eb44167186eef75e040e49578c95cc492 Mon Sep 17 00:00:00 2001 From: Tony Tam Date: Tue, 23 Sep 2014 10:00:03 -0700 Subject: [PATCH] fix for #606, renamed resource to in the template --- dist/swagger-ui.js | 13 ++++++++----- dist/swagger-ui.min.js | 2 +- src/main/coffeescript/view/ResourceView.coffee | 2 ++ src/main/template/resource.handlebars | 2 +- 4 files changed, 12 insertions(+), 7 deletions(-) diff --git a/dist/swagger-ui.js b/dist/swagger-ui.js index e07d1220..86ee0344 100644 --- a/dist/swagger-ui.js +++ b/dist/swagger-ui.js @@ -1087,12 +1087,12 @@ function program1(depth0,data) { buffer += escapeExpression(stack1) + " "; options = {hash:{},inverse:self.noop,fn:self.program(1, program1, data),data:data}; - if (stack1 = helpers.description) { stack1 = stack1.call(depth0, options); } - else { stack1 = depth0.description; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; } - if (!helpers.description) { stack1 = blockHelperMissing.call(depth0, stack1, options); } + if (stack1 = helpers.summary) { stack1 = stack1.call(depth0, options); } + else { stack1 = depth0.summary; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; } + if (!helpers.summary) { stack1 = blockHelperMissing.call(depth0, stack1, options); } if(stack1 || stack1 === 0) { buffer += stack1; } - if (stack1 = helpers.description) { stack1 = stack1.call(depth0, {hash:{},data:data}); } - else { stack1 = depth0.description; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; } + if (stack1 = helpers.summary) { stack1 = stack1.call(depth0, {hash:{},data:data}); } + else { stack1 = depth0.summary; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; } if(stack1 || stack1 === 0) { buffer += stack1; } buffer += "\n \n