2011-10-18 17:44:43 +03:00
|
|
|
%div
|
2011-10-21 14:03:34 +03:00
|
|
|
%h2.left History
|
2011-10-18 17:44:43 +03:00
|
|
|
.right
|
|
|
|
= form_tag project_path(@project), :method => :get do
|
|
|
|
.span-2
|
2011-10-21 14:03:34 +03: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 16:25:22 +03:00
|
|
|
= label_tag "day_view","Today"
|
2011-10-18 17:44:43 +03: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 14:33:30 +03:00
|
|
|
%hr
|
2011-11-01 13:17:36 +02:00
|
|
|
.left.width-49p
|
2011-10-18 17:44:43 +03:00
|
|
|
%h3 Commits
|
|
|
|
=render "projects/recent_commits"
|
|
|
|
|
2011-11-01 13:17:36 +02:00
|
|
|
.right.width-49p
|
2011-10-19 16:25:22 +03:00
|
|
|
%h3 Talk
|
2011-10-18 17:44:43 +03:00
|
|
|
=render "projects/recent_messages"
|
2011-10-18 14:33:30 +03:00
|
|
|
|
2011-10-26 23:22:42 +05:00
|
|
|
:javascript
|
|
|
|
function updateDashboard(){
|
|
|
|
$('#content-container').load("#{escape_javascript(project_path(@project))} #content-container>*");
|
|
|
|
}
|
|
|
|
setInterval("updateDashboard()", 300000);
|