From 577334b5657f0a32804813368921b35d64a43a4c Mon Sep 17 00:00:00 2001 From: simonbrandhof Date: Tue, 26 Apr 2011 12:05:51 +0200 Subject: [PATCH] SONAR-2327 add help on markdown --- .../app/controllers/reviews_controller.rb | 4 +- .../reviews/_violation_comment_form.html.erb | 46 +++++++++++++++---- 2 files changed, 39 insertions(+), 11 deletions(-) diff --git a/sonar-server/src/main/webapp/WEB-INF/app/controllers/reviews_controller.rb b/sonar-server/src/main/webapp/WEB-INF/app/controllers/reviews_controller.rb index ab023eb4311..05ce979a1c3 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/controllers/reviews_controller.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/controllers/reviews_controller.rb @@ -26,8 +26,8 @@ class ReviewsController < ApplicationController helper(:reviews,:markdown) def index - init_params - search_reviews + init_params() + search_reviews() end def show diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/reviews/_violation_comment_form.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/reviews/_violation_comment_form.html.erb index 18e604906e1..933326b8914 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/reviews/_violation_comment_form.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/reviews/_violation_comment_form.html.erb @@ -1,18 +1,46 @@ + + <% button=(@comment ? 'Update comment' : 'Add comment') %> - -
+ <% if @comment %> <% end %> - - <%= submit_to_remote "submit_btn", button, :url => { :action => 'violation_save_comment'}, :html => { :id => "submit_btn", :disabled => "true" }, :update => 'vId'+params[:id] -%> - <%= link_to_remote 'Cancel', :url => {:action => 'display_violation', :id => params[:id]}, :update => 'vId' + params[:id] -%> - <% if @violation.review.nil? || @violation.review.comments.size==0 %> -    - <%= check_box_tag "assign_to_me", "me", true -%> - <% end %> + + + + + + +
+ +
+ <%= submit_to_remote "submit_btn", button, :url => { :action => 'violation_save_comment'}, :html => { :id => "submit_btn", :disabled => "true" }, :update => 'vId'+params[:id] -%> + <%= link_to_remote 'Cancel', :url => {:action => 'display_violation', :id => params[:id]}, :update => 'vId' + params[:id] -%> + + <% if @violation.review.nil? || @violation.review.comments.size==0 %> +   + <%= check_box_tag "assign_to_me", "me", true -%> + <% end %> +
+

Help Tips

+ + + + + + + + + + + + + + +
*bold*bold
''code''code
* Bulleted point
+
-- 2.39.5