From 897f53e7117e4a71a3033c8c25467d4c37654f5a Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Mon, 9 Sep 2013 18:43:58 +0200 Subject: [PATCH] SONAR-4438 Add an empty space when no source code in order to display correctly the "More action" menu --- .../src/main/webapp/WEB-INF/app/views/issue/_show.html.erb | 7 ++++++- sonar-server/src/main/webapp/javascripts/application.js | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/issue/_show.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/issue/_show.html.erb index f7361ecbd07..14a8520d3b5 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/issue/_show.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/issue/_show.html.erb @@ -29,5 +29,10 @@
<%= snapshot_html_source(@snapshot, {:line_range => (@issue.line-5)..(@issue.line+5), :highlighted_lines => [@issue.line]}) -%>
+ <% else %> + +
<% end %> - \ No newline at end of file + diff --git a/sonar-server/src/main/webapp/javascripts/application.js b/sonar-server/src/main/webapp/javascripts/application.js index 42d5c35c41c..7891669b50d 100644 --- a/sonar-server/src/main/webapp/javascripts/application.js +++ b/sonar-server/src/main/webapp/javascripts/application.js @@ -496,4 +496,4 @@ function showDropdownMenuOnElement(elt) { function openPopup(url, popupId) { window.open(url,popupId,'height=800,width=900,scrollbars=1,resizable=1'); return false; -} \ No newline at end of file +} -- 2.39.5