]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-3528 Add missing modification on Ruby template
authorFabrice Bellingard <bellingard@gmail.com>
Tue, 5 Jun 2012 09:10:28 +0000 (11:10 +0200)
committerFabrice Bellingard <bellingard@gmail.com>
Tue, 5 Jun 2012 09:10:28 +0000 (11:10 +0200)
plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/reviews/planned_reviews.html.erb

index f09cff1e97060e7159b3e67aedcb749cc5b68647..50c604636424f9a9cf3087c2187f5d1993d8d89d 100644 (file)
@@ -1,6 +1,6 @@
 <%
    if has_role?(:user, @project)
-     limit = widget_properties["numberOfLines"]
+     table_limit = widget_properties["numberOfLines"]
 
      search_options = {}
      search_options['projects'] = @project.key
@@ -26,7 +26,7 @@
      else
        first_action_plan = open_action_plans[0]
        url_options = search_options.merge({:controller => 'project_reviews', :action => 'widget_reviews_list', :snapshot_id => @snapshot.id,
-                                           :limit => limit, :widget_id => widget.id, :period => params[:period] })
+                                           :table_limit => table_limit, :widget_id => widget.id, :period => params[:period] })
 %>
 
 <script type="text/javascript">
@@ -34,7 +34,6 @@
     new Ajax.Updater('reviews-widget-<%= widget.id -%>',
                      '<%= url_for url_options -%>&action_plan_id=' + actionPlanId,                      
                      {asynchronous:true, evalScripts:true});
-   $('planned-review-more-link_<%= widget.id -%>').href = '<%= url_for url_options.merge({:action => 'index'}) -%>&action_plan_id=' + actionPlanId;
   }
 </script>
 
@@ -54,7 +53,7 @@
   <% search_options['action_plan_id'] = first_action_plan.id %>
   <%= render :partial => 'project/widgets/reviews/reviews_list',
              :locals => {:search_options => search_options,
-                         :limit => limit,
+                         :table_limit => table_limit,
                          :widget_id => widget.id.to_s} %>
 </div>