rosa-build/app/views/build_lists/index.html.haml

28 lines
1.1 KiB
Plaintext
Raw Normal View History

2011-04-07 14:20:21 +01:00
.block
- if controller.action_name != 'all'
.secondary-navigation
%ul.wat-cf
%li.first= link_to t("layout.build_lists.current"), project_path(@project) + "#build_lists"
%li.active= link_to t("layout.build_lists.all"), project_build_lists_path(@project)
2011-04-07 14:20:21 +01:00
.content
2011-10-29 14:38:01 +01:00
- if controller.action_name == 'all'
.inner
%h2= t('layout.build_lists.build_server_status.header')
.field
%span= t('layout.build_lists.build_server_status.client_count') + ":"
2011-10-30 14:10:42 +00:00
%span= @build_server_status['client_count']
2011-10-29 14:38:01 +01:00
.field
%span= t('layout.build_lists.build_server_status.count_new_task') + ":"
2011-10-30 14:10:42 +00:00
%span= @build_server_status['count_new_task']
2011-10-29 14:38:01 +01:00
.field
%span= t('layout.build_lists.build_server_status.count_build_task') + ":"
2011-10-30 14:10:42 +00:00
%span= @build_server_status['count_build_task']
2011-10-29 14:38:01 +01:00
2011-04-07 14:20:21 +01:00
.inner
= render :partial => "build_lists/filter", :action_url => @action_url
2011-04-07 14:20:21 +01:00
.inner
= render :partial => "build_lists/build_lists", :object => @build_lists
- content_for :sidebar, render(:partial => 'sidebar') if controller.action_name != 'all'