diff options
Diffstat (limited to '')
-rw-r--r-- | views/layouts/main.tt | 18 | ||||
-rw-r--r-- | views/project/index.tt | 2 |
2 files changed, 2 insertions, 18 deletions
diff --git a/views/layouts/main.tt b/views/layouts/main.tt index 7a06684..8a4ed13 100644 --- a/views/layouts/main.tt +++ b/views/layouts/main.tt @@ -5,23 +5,7 @@ <link rel="stylesheet" href="/css/style.css" /> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script> <meta charset="UTF-8" /> - <script type="text/javascript"> - $(document).ready(function() { - $('.builds-day').click(function() { - var day = $(this).text(); - var class = "#commits-day-" + day; - console.log("on toggle " + class); - $(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; - })}) - </script> + <script src="<: $uri_base :>/js/common.js" type="text/javascript"></script> </head> <body> <: $content :> diff --git a/views/project/index.tt b/views/project/index.tt index 884f58d..d028d31 100644 --- a/views/project/index.tt +++ b/views/project/index.tt @@ -1,6 +1,6 @@ <div id="page"> <div id="content"> - <h2><a href="<: $project.url :>"><: $project.name :></a> / build history <a href="<: $base_uri :>/project/<: $project.name :>/feed"><img src="<: $uri_base :>/images/feed.png" /></a></h2> + <h2><a href="<: $project.url :>"><: $project.name :></a> / build history <a href="<: $uri_base :>/project/<: $project.name :>/feed"><img src="<: $uri_base :>/images/feed.png" /></a></h2> <div class="project_baseline"><strong>"<: $project.description :>"</strong></div> |