diff options
author | franck cuny <franck@lumberjaph.net> | 2010-09-25 17:24:13 +0200 |
---|---|---|
committer | franck cuny <franck@lumberjaph.net> | 2010-09-25 17:24:13 +0200 |
commit | 7e222db2393e93c851ad43019636c3c06bbbaa1a (patch) | |
tree | 9c0990fc504cb59a1c1829c4e8816ebe48639e69 /views | |
parent | augment width (diff) | |
download | jitterbug-7e222db2393e93c851ad43019636c3c06bbbaa1a.tar.gz |
sort commits; show under the appropriate box
Diffstat (limited to 'views')
-rw-r--r-- | views/layouts/main.tt | 4 | ||||
-rw-r--r-- | views/project/index.tt | 5 |
2 files changed, 5 insertions, 4 deletions
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("<pre>" + data.content + "<pre>"); + $("#result-" + id).html("<pre>" + data.content + "<pre>"); }); 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 @@ </ul> </div> </div> + <div class="display_test_result" id="result-<: $build.commit :>"> + </div> :} </div> -<div id="display_test_result"> -</div> - </div> </div> |