diff options
Diffstat (limited to 'sonar-server/src/main/webapp/WEB-INF/app/views/reviews/_show.html.erb')
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/views/reviews/_show.html.erb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/reviews/_show.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/reviews/_show.html.erb index 7e90b13accb..b9faf2e6d30 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/reviews/_show.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/reviews/_show.html.erb @@ -1,5 +1,11 @@ -<div class="marginbottom10"> +<div id="backReviewDiv" class="marginbottom10"> <a href="#" onclick="backReviews()">« Back to reviews</a> </div> +<script> + if ($('reviews-search')==null) { + // This happens when this page results from a call made from the review permalink page + $('backReviewDiv').hide(); + } +</script> <%= render :partial => 'reviews/review', :locals => {:review => @review} -%>
\ No newline at end of file |