diff options
Diffstat (limited to 'views/project/index.tt')
-rw-r--r-- | views/project/index.tt | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/views/project/index.tt b/views/project/index.tt index 2749989..7f3ee1f 100644 --- a/views/project/index.tt +++ b/views/project/index.tt @@ -1,33 +1,37 @@ <div id="page"> <div id="content"> - <h2><a href="<: $url :>"><: $project :></a> / build history <a href="<: $base_uri :>/project/<: $project :>/feed"><img src="<: $uri_base :>/images/feed.png" /></a></h2> + <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> - <strong>"<: $description :>"</strong> + <strong>"<: $project.description :>"</strong> :for $days -> $day { <h3 class="builds-day" id="builds-day-<: $day :>"><: $day :></h3> <div class="commits" id="commits-day-<: $day :>"> - :for $builds[$day] -> $build { - <div class="commit" id="<: $build.commit :>"> + :for $commits[$day] -> $commit { + <div class="commit" id="<: $commit.id :>"> <div class="description"> - <div class="message"><pre><: $build.message :></pre></div> - <div class="name"><: $build.author.name :></div> - <div class="date"><: $build.timestamp :></div> + <div class="message"><pre><: $commit.message :></pre></div> + <div class="name"><: $commit.author.name :></div> + <br /> <div class="builds"> - :for $build.version.keys() -> $version { - <a href="<: $uri_base :>/api/build/<: $project :>/<: $build.commit :>/<: $version :>"><: $version :></a> <span class="<: $build.version[$version] :>"><: $build.version[$version] :></span> + :for $commit.build.version.keys() -> $version { + <a href="<: $uri_base :>/api/build/<: $project.name :>/<: $commit.id :>/<: $version :>"><: $version :></a> <span class="<: $commit.build.version[$version] :>"><: $commit.build.version[$version] :></span> :} </div> </div> <div class="git"> - commit <a href="<: $build.url :>"><: $build.commit :></a><br /> + commit <a href="<: $commit.url :>"><: $commit.id :></a><br /> + commited <: $commit.timestamp :><br /> + ref <: $commit.ref :><br /> + <: if $commit.build { :> + built in <: $commit.build.end_time - $commit.build.start_time :> seconds</br > + <: } :> </div> </div> - <div class="display_test_result" style="display: none" id="result-<: $build.commit :>"> + <div class="display_test_result" style="display: none" id="result-<: $commit.id :>"> </div> :} </div> - <hr /> :} </div> </div> |