diff options
-rw-r--r-- | public/css/style.css | 11 | ||||
-rw-r--r-- | views/index.tt | 30 |
2 files changed, 18 insertions, 23 deletions
diff --git a/public/css/style.css b/public/css/style.css index afe68f8..a215c98 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -237,13 +237,10 @@ font-family:Monaco,"Courier New","DejaVu Sans Mono","Bitstream Vera Sans Mono",m .commit .builds span.PASS{color:green} .commit .builds span.FAIL{color:red} -.repo{border:1px solid #d8d8d8;background-color:#f0f0f0;} - -ul.repositories{margin:0;} -ul.repositories>li{list-style-type:none;margin:0 0 10px 0;padding:8px 10px 0 10px;border:1px solid #ddd;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;} -ul.repositories h3{margin:0;font-size:14px;white-space:nowrap;} -ul.repositories p.desc{margin:0 0 3px 0;font-size:12px;color:#444;} -ul.repositories p.updated-at{margin:0;font-size:11px;color:#888;} +.repo{border:1px solid #d8d8d8;background-color:#f0f0f0;margin:0;margin:0 0 10px 0;padding:8px 10px 0 10px;border:1px solid #ddd;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;} +.repo h3{margin:0;font-size:14px;white-space:nowrap;} +.repo p.desc{margin:0 0 3px 0;font-size:12px;color:#444;} +.repo p.updated-at{margin:0;font-size:11px;color:#888;} .commit .name{float:left; width: 100%;} .commit .name .date{color:#888;font-size:90%;} diff --git a/views/index.tt b/views/index.tt index b75ee8e..6359157 100644 --- a/views/index.tt +++ b/views/index.tt @@ -7,24 +7,22 @@ <div class="first"> <h3>Repositories (<: $projects.size() :>)</h3> - <ul class="repositories"> - : for $projects -> $project { - <li class="repo"> - <h3><a href="<: $uri_base :>project/<: $project.name :>"><: $project.name :></a></h3> - <div class="repo-body"> - <p class="desc"><: $project.description :></p> - :if $project.last_build.timestamp { - <p class="updated-at">last updated at <: $project.last_build.timestamp :></p> + : for $projects -> $project { + <div class="repo"> + <h3><a href="<: $uri_base :>project/<: $project.name :>"><: $project.name :></a></h3> + <div class="repo-body"> + <p class="desc"><: $project.description :></p> + :if $project.last_build.timestamp { + <p class="updated-at">last updated at <: $project.last_build.timestamp :></p> + :} + <div class="last-builds"> + :for $project.last_build.version.keys() -> $version { + <a href="<: $uri_base :>/api/build/<: $project.name :>/<: $project.last_build.commit :>/<: $version :>"><: $version :></a> <span class="<: $project.last_build.version[$version] :>"><: $project.last_build.version[$version] :></span> :} - <div class="last-builds"> - :for $project.last_build.version.keys() -> $version { - <a href="<: $uri_base :>/api/build/<: $project.name :>/<: $project.last_build.commit :>/<: $version :>"><: $version :></a> <span class="<: $project.last_build.version[$version] :>"><: $project.last_build.version[$version] :></span> - :} - </div> </div> - </li> - : } - </ul> + </div> + </div> + : } </div> <div class="last"> |