Merge pull request #131 from abf/rosa-build:98-common_tracker
[refs #98] fix titles & show count only opened issues/pull requests in sidebar
This commit is contained in:
commit
70a2705405
|
@ -1,4 +1,4 @@
|
||||||
-set_meta_tags :title => t("users.users.#{action_name}_index.title")
|
-set_meta_tags :title => t("home.#{action_name}.title")
|
||||||
-render 'top_menu'
|
-render 'top_menu'
|
||||||
-content_for :sidebar do
|
-content_for :sidebar do
|
||||||
=form_tag send("#{action_name}_path"), :id => 'filter_issues', :method => :get do
|
=form_tag send("#{action_name}_path"), :id => 'filter_issues', :method => :get do
|
||||||
|
@ -8,5 +8,5 @@
|
||||||
%tr
|
%tr
|
||||||
%td.width18=radio_button_tag :myradio, filter, filter == @filter, {:id => 'myradio1', :class => 'niceRadio', :name => 'filter'}
|
%td.width18=radio_button_tag :myradio, filter, filter == @filter, {:id => 'myradio1', :class => 'niceRadio', :name => 'filter'}
|
||||||
%td.width135=t("layout.#{action_name}.#{filter}")
|
%td.width135=t("layout.#{action_name}.#{filter}")
|
||||||
%td.width30.right=instance_variable_get("@#{filter}_issues").count
|
%td.width30.right=instance_variable_get("@#{filter}_issues").not_closed_or_merged.count
|
||||||
=render 'projects/issues/issues_table', :issues => @issues
|
=render 'projects/issues/issues_table', :issues => @issues
|
||||||
|
|
|
@ -6,11 +6,11 @@
|
||||||
%tr
|
%tr
|
||||||
%td.width18=radio_button_tag :myradio, 'all', !@is_assigned_to_me, {:id => 'myradio1', :class => 'niceRadio', :name => 'filter'}
|
%td.width18=radio_button_tag :myradio, 'all', !@is_assigned_to_me, {:id => 'myradio1', :class => 'niceRadio', :name => 'filter'}
|
||||||
%td.width135=t('layout.issues.all')
|
%td.width135=t('layout.issues.all')
|
||||||
%td.width30.right=@project.issues.without_pull_requests.count
|
%td.width30.right=@project.issues.without_pull_requests.not_closed_or_merged.count
|
||||||
%tr
|
%tr
|
||||||
%td=radio_button_tag :myradio, 'assigned', @is_assigned_to_me, {:id => 'myradio1', :class => 'niceRadio', :name => 'filter'}
|
%td=radio_button_tag :myradio, 'assigned', @is_assigned_to_me, {:id => 'myradio1', :class => 'niceRadio', :name => 'filter'}
|
||||||
%td=t('layout.issues.assigned')
|
%td=t('layout.issues.assigned')
|
||||||
%td.width30.right=@project.issues.without_pull_requests.where(:assignee_id => current_user.id).count
|
%td.width30.right=@project.issues.without_pull_requests.where(:assignee_id => current_user.id).not_closed_or_merged.count
|
||||||
=form_tag project_issues_path(@project), :id => 'search_issue', :class => 'ajax_search_form', :method => :get do
|
=form_tag project_issues_path(@project), :id => 'search_issue', :class => 'ajax_search_form', :method => :get do
|
||||||
.bordered.bpadding20
|
.bordered.bpadding20
|
||||||
- search = params[:search_issue].present? ? params[:search_issue] : t('layout.issues.search')
|
- search = params[:search_issue].present? ? params[:search_issue] : t('layout.issues.search')
|
||||||
|
|
|
@ -6,11 +6,11 @@
|
||||||
%tr
|
%tr
|
||||||
%td.width18=radio_button_tag :myradio, 'all', !@is_assigned_to_me, {:id => 'myradio1', :class => 'niceRadio', :name => 'filter'}
|
%td.width18=radio_button_tag :myradio, 'all', !@is_assigned_to_me, {:id => 'myradio1', :class => 'niceRadio', :name => 'filter'}
|
||||||
%td.width135=t("layout.pull_requests.all")
|
%td.width135=t("layout.pull_requests.all")
|
||||||
%td.width30.right=@project.issues.joins(:pull_request).count
|
%td.width30.right=@project.issues.joins(:pull_request).not_closed_or_merged.count
|
||||||
%tr
|
%tr
|
||||||
%td=radio_button_tag :myradio, 'to_me', @is_assigned_to_me, {:id => 'myradio1', :class => 'niceRadio', :name => 'filter'}
|
%td=radio_button_tag :myradio, 'to_me', @is_assigned_to_me, {:id => 'myradio1', :class => 'niceRadio', :name => 'filter'}
|
||||||
%td=t("layout.pull_requests.to_me")
|
%td=t("layout.pull_requests.to_me")
|
||||||
%td.width30.right=@project.issues.joins(:pull_request).where(:assignee_id => current_user.id).count
|
%td.width30.right=@project.issues.joins(:pull_request).where(:assignee_id => current_user.id).not_closed_or_merged.count
|
||||||
=form_tag project_pull_requests_path(@project), :id => 'filter_pull_requests', :method => :get, :class => 'ajax_search_form' do
|
=form_tag project_pull_requests_path(@project), :id => 'filter_pull_requests', :method => :get, :class => 'ajax_search_form' do
|
||||||
.bordered.bpadding20
|
.bordered.bpadding20
|
||||||
- search = params[:search_pull_request].present? ? params[:search_pull_request] : t('layout.pull_requests.search')
|
- search = params[:search_pull_request].present? ? params[:search_pull_request] : t('layout.pull_requests.search')
|
||||||
|
|
|
@ -33,7 +33,7 @@ en:
|
||||||
product_build_lists:
|
product_build_lists:
|
||||||
index:
|
index:
|
||||||
title: 'Products Monitoring'
|
title: 'Products Monitoring'
|
||||||
pages:
|
home:
|
||||||
issues:
|
issues:
|
||||||
title: 'Your Issues'
|
title: 'Your Issues'
|
||||||
pull_requests:
|
pull_requests:
|
||||||
|
|
|
@ -33,7 +33,7 @@ ru:
|
||||||
product_build_lists:
|
product_build_lists:
|
||||||
index:
|
index:
|
||||||
title: 'Мониторинг продуктов'
|
title: 'Мониторинг продуктов'
|
||||||
pages:
|
home:
|
||||||
issues:
|
issues:
|
||||||
title: 'Ваши задачи'
|
title: 'Ваши задачи'
|
||||||
pull_requests:
|
pull_requests:
|
||||||
|
|
Loading…
Reference in New Issue