summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/layouts/main.tt4
-rw-r--r--views/project/index.tt5
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>