aboutsummaryrefslogtreecommitdiff
path: root/src/main/webapp
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2012-12-28 16:39:13 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2012-12-28 16:39:13 +0100
commit54ec271b75dad82da9bd4ee2975a22490d66d6dc (patch)
treeaa72a3a77445f4b0ee238932536e44cb0878089f /src/main/webapp
parentc9ff3d5495b0229d837fa0ec23486cc7b6b191d0 (diff)
downloadesper-testing-54ec271b75dad82da9bd4ee2975a22490d66d6dc.tar.gz
esper-testing-54ec271b75dad82da9bd4ee2975a22490d66d6dc.tar.bz2
esper-testing-54ec271b75dad82da9bd4ee2975a22490d66d6dc.tar.xz
esper-testing-54ec271b75dad82da9bd4ee2975a22490d66d6dc.zip
o Showing date and build result IN COLOR!
Diffstat (limited to 'src/main/webapp')
-rw-r--r--src/main/webapp/WEB-INF/tags/common/head.tagx1
-rw-r--r--src/main/webapp/apps/app.js0
-rw-r--r--src/main/webapp/apps/personApp/person.html31
3 files changed, 22 insertions, 10 deletions
diff --git a/src/main/webapp/WEB-INF/tags/common/head.tagx b/src/main/webapp/WEB-INF/tags/common/head.tagx
index 2384b20..f5b27a4 100644
--- a/src/main/webapp/WEB-INF/tags/common/head.tagx
+++ b/src/main/webapp/WEB-INF/tags/common/head.tagx
@@ -16,6 +16,7 @@
<script type="text/javascript" src="/external/headjs-0.99/head.min.js"><!-- --></script>
<script type="text/javascript">
head.js(
+ {app: "/apps/app.js"},
{jquery: "/external/jquery-1.8.3/jquery-1.8.3.js"},
{angularjs: "/external/angular-1.0.3/angular.js"},
{angularjsResource: "/external/angular-1.0.3/angular-resource.js"},
diff --git a/src/main/webapp/apps/app.js b/src/main/webapp/apps/app.js
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/src/main/webapp/apps/app.js
diff --git a/src/main/webapp/apps/personApp/person.html b/src/main/webapp/apps/personApp/person.html
index 2c0c3e7..5a8395e 100644
--- a/src/main/webapp/apps/personApp/person.html
+++ b/src/main/webapp/apps/personApp/person.html
@@ -5,20 +5,31 @@
</div>
<h3>Badges</h3>
+
<p ng-repeat="badge in person.badges">
<span class="badge-level-{{badge.level}} badge">{{badge.name}}</span><span ng-show="badge.count > 1"> x {{badge.count}}</span>
</p>
- <h3>Badges in progress</h3>
- <p ng-repeat="badge in person.badgesInProgress">
- <span class="badge badge-level-{{badge.level}}">{{badge.name}}</span> progress: {{badge.progress}} of {{badge.goal}}
- </p>
+ <div ng-repeat="badge in person.badgesInProgress">
+ <div class="progress">
+ <div class="bar" style="width: {{badge.progress / badge.goal * 100}}%;">{{badge.name}}</div>
+ </div>
+ </div>
- <h3>Builds</h3>
- <ul>
- <li ng-repeat="build in builds">
- {{build.uuid}}
- </li>
- </ul>
+ <h3>Recent builds</h3>
+ <table class="table">
+ <thead>
+ <tr>
+ <th>Date</th>
+ <th>Success</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr ng-repeat="build in builds" class="{{{true: 'success', false: 'error'}[build.success]}}">
+ <td>{{build.date | date:'medium'}}</td>
+ <td>{{build.success}}</td>
+ </tr>
+ </tbody>
+ </table>
</div>