gitlabhq/app/views/projects/show.html.haml

29 lines
972 B
Plaintext
Raw Normal View History

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