summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--public/css/style.css4
-rw-r--r--public/js/common.js15
2 files changed, 16 insertions, 3 deletions
diff --git a/public/css/style.css b/public/css/style.css
index 89a35d5..fdd5d32 100644
--- a/public/css/style.css
+++ b/public/css/style.css
@@ -224,8 +224,6 @@ font-family:Monaco,"Courier New","DejaVu Sans Mono","Bitstream Vera Sans Mono",m
}
.message pre{white-space:pre-wrap;word-wrap:break-word;width:40em;}
-/* .commit .name{clear:left;margin-top:.75em;line-height:2em} */
-.commit .date{color:#888;line-height:1em;}
.commit .builds span {font-size:110%;font-weight: bolder;}
.commit .builds span.PASS{color:green}
.commit .builds span.FAIL{color:red}
@@ -237,7 +235,7 @@ font-family:Monaco,"Courier New","DejaVu Sans Mono","Bitstream Vera Sans Mono",m
.commit .name{float:left; width: 100%;}
.commit .name .date{color:#888;font-size:90%;}
-.commit .name .author{font-weight: bolder;}
+.commit .name .author{font-weight: bolder;line-height:2em}
.commit .gravatar{border:1px solid #d0d0d0;padding:2px;background-color:white;float:left;margin-right:.7em;}
.columns .first{float:left;width:450px;}
diff --git a/public/js/common.js b/public/js/common.js
new file mode 100644
index 0000000..646f80e
--- /dev/null
+++ b/public/js/common.js
@@ -0,0 +1,15 @@
+$(document).ready(function() {
+ $('.builds-day').click(function() {
+ var day = $(this).text();
+ var class = "#commits-day-" + day;
+ $(class).toggle();
+ });
+ $('.builds a').click(function() {
+ var url = $(this).attr("href");
+ var id = $(this).parents('.commit').attr('id');
+ $.getJSON(url, null, function(data) {
+ $("#result-" + id).html("<pre>" + data.content + "<pre>").toggle();
+ });
+ return false;
+ })
+})