Skip to content

Commit 5fffcc6

Browse files
committed
now using asset pipeline for image paths
1 parent 5773535 commit 5fffcc6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/assets/javascripts/grape_swagger_rails/swagger-ui.js renamed to app/assets/javascripts/grape_swagger_rails/swagger-ui.js.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ function program9(depth0,data) {
352352
function program11(depth0,data) {
353353

354354

355-
return "\n <div class='sandbox_header'>\n <input class='submit' name='commit' type='button' value='Try it out!' />\n <a href='#' class='response_hider' style='display:none'>Hide Response</a>\n <img alt='Throbber' class='response_throbber' src='images/throbber.gif' style='display:none' />\n </div>\n ";
355+
return "\n <div class='sandbox_header'>\n <input class='submit' name='commit' type='button' value='Try it out!' />\n <a href='#' class='response_hider' style='display:none'>Hide Response</a>\n <img alt='Throbber' class='response_throbber' src='<%= image_path("grape_swagger_rails/throbber.gif") %>' style='display:none' />\n </div>\n ";
356356
}
357357

358358
buffer += "\n <ul class='operations' >\n <li class='";

app/assets/stylesheets/grape_swagger_rails/screen.css renamed to app/assets/stylesheets/grape_swagger_rails/screen.css.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1014,7 +1014,7 @@ table {
10141014
font-size: 1.5em;
10151015
font-weight: bold;
10161016
text-decoration: none;
1017-
background: transparent url(../images/logo_small.png) no-repeat left center;
1017+
background: transparent url((<%= image_path('grape_swagger_rails/logo_small.png') %>) no-repeat left center;
10181018
padding: 20px 0 20px 40px;
10191019
color: white;
10201020
}

0 commit comments

Comments
 (0)