From: simonbrandhof Date: Tue, 26 Apr 2011 10:05:51 +0000 (+0200) Subject: SONAR-2327 add help on markdown X-Git-Tag: 2.8~128 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=577334b5657f0a32804813368921b35d64a43a4c;p=sonarqube.git SONAR-2327 add help on markdown --- 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
+