From 7e222db2393e93c851ad43019636c3c06bbbaa1a Mon Sep 17 00:00:00 2001 From: franck cuny Date: Sat, 25 Sep 2010 17:24:13 +0200 Subject: sort commits; show under the appropriate box --- views/layouts/main.tt | 4 +++- views/project/index.tt | 5 ++--- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'views') diff --git a/views/layouts/main.tt b/views/layouts/main.tt index 2512de7..cf3f0e0 100644 --- a/views/layouts/main.tt +++ b/views/layouts/main.tt @@ -9,8 +9,10 @@ $(document).ready(function() { $('.builds a').click(function() { var url = $(this).attr("href"); + var id = $(this).parents('.commit').attr('id'); + console.log("id => " + id); $.getJSON(url, null, function(data) { - $("#display_test_result").html("
" + data.content + "
");
+            $("#result-" + id).html("
" + data.content + "
");
           });
           return false;
       })})
diff --git a/views/project/index.tt b/views/project/index.tt
index ff17e98..877a803 100644
--- a/views/project/index.tt
+++ b/views/project/index.tt
@@ -28,11 +28,10 @@
             
         
     
+    
+
:} -
-
- -- cgit v1.2.3