From e0f4a37f3d9fba676c60d28677dfd1d7c9dfd5ac Mon Sep 17 00:00:00 2001 From: Nihad Abbasov Date: Wed, 26 Oct 2011 23:22:42 +0500 Subject: [PATCH] update project's dashboard every 5 minutes --- app/views/projects/show.html.haml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/views/projects/show.html.haml b/app/views/projects/show.html.haml index 85019ecbe5d..566217859e3 100644 --- a/app/views/projects/show.html.haml +++ b/app/views/projects/show.html.haml @@ -21,3 +21,8 @@ %h3 Talk =render "projects/recent_messages" +:javascript + function updateDashboard(){ + $('#content-container').load("#{escape_javascript(project_path(@project))} #content-container>*"); + } + setInterval("updateDashboard()", 300000);