diff options
author | franck cuny <franck@lumberjaph.net> | 2010-09-26 11:45:33 +0200 |
---|---|---|
committer | franck cuny <franck@lumberjaph.net> | 2010-09-26 11:45:33 +0200 |
commit | b2a14e92721e392ba19d9ff90b44b68cfdd62edd (patch) | |
tree | 45648885c2c0da25a750f5b53ac98d2f6533a20b /views/index.tt | |
parent | fix error o nget (diff) | |
download | jitterbug-b2a14e92721e392ba19d9ff90b44b68cfdd62edd.tar.gz |
don't display last update when no update is available
Diffstat (limited to '')
-rw-r--r-- | views/index.tt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/views/index.tt b/views/index.tt index afebb93..f763aff 100644 --- a/views/index.tt +++ b/views/index.tt @@ -13,7 +13,9 @@ <h3><a href="<: $uri_base :>project/<: $project.name :>"><: $project.name :></a></h3> <div class="repo-body"> <p class="desc"><: $project.description :></p> - <p class="updated-at">last updated at <: $project.last_build.timestamp :></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> |