2011-10-18 10:44:43 -04:00
|
|
|
%div
|
2011-10-21 07:03:34 -04:00
|
|
|
%h2.left History
|
2011-10-18 10:44:43 -04:00
|
|
|
.right
|
|
|
|
= form_tag project_path(@project), :method => :get do
|
|
|
|
.span-2
|
2011-10-21 07:03:34 -04:00
|
|
|
= radio_button_tag :view, "recent", (params[:view] || "recent") == "recent", :onclick => "this.form.submit()", :id => "recent_view"
|
|
|
|
= label_tag "recent_view","Recent"
|
|
|
|
.span-2
|
|
|
|
= radio_button_tag :view, "day", params[:view] == "day", :onclick => "this.form.submit()", :id => "day_view"
|
2011-10-19 09:25:22 -04:00
|
|
|
= label_tag "day_view","Today"
|
2011-10-18 10:44:43 -04:00
|
|
|
.span-2
|
|
|
|
= radio_button_tag :view, "week", params[:view] == "week", :onclick => "this.form.submit()", :id => "week_view"
|
|
|
|
= label_tag "week_view","Week"
|
|
|
|
.clear
|
2011-10-18 07:33:30 -04:00
|
|
|
%hr
|
2011-11-01 07:17:36 -04:00
|
|
|
.left.width-49p
|
2011-10-18 10:44:43 -04:00
|
|
|
%h3 Commits
|
|
|
|
=render "projects/recent_commits"
|
|
|
|
|
2011-11-01 07:17:36 -04:00
|
|
|
.right.width-49p
|
2011-10-19 09:25:22 -04:00
|
|
|
%h3 Talk
|
2011-10-18 10:44:43 -04:00
|
|
|
=render "projects/recent_messages"
|
2011-10-18 07:33:30 -04:00
|
|
|
|
2011-10-26 14:22:42 -04:00
|
|
|
:javascript
|
|
|
|
function updateDashboard(){
|
|
|
|
$('#content-container').load("#{escape_javascript(project_path(@project))} #content-container>*");
|
|
|
|
}
|
|
|
|
setInterval("updateDashboard()", 300000);
|