diff --git a/html/ptg.html b/html/ptg.html
index 39f1c4a..cbd6fa1 100644
--- a/html/ptg.html
+++ b/html/ptg.html
@@ -40,8 +40,13 @@
{{trackbadge track}} |
{{#trackContentLine}}{{lookup @root.now track}}{{/trackContentLine}} |
- {{lookup @root.location track}} |
- {{checkins track}} |
+ {{lookup @root.location track}}
+ {{#if (checkins track)}}
+
+ {{checkins track}}
+
+ {{/if}}
+ |
{{/if}}
{{else}}
diff --git a/html/ptg.js b/html/ptg.js
index cc5c128..835321b 100644
--- a/html/ptg.js
+++ b/html/ptg.js
@@ -33,20 +33,10 @@ Handlebars.registerHelper('roomactive',
});
Handlebars.registerHelper('checkins', function(track) {
- var count = checkins_count(track);
- var url = "https://opendev.org/openstack/ptgbot/src/branch/master/README.rst";
- var text;
- var title = "See below or click for how to check in/out";
- if (count == 0) {
- text = 'No check-ins';
- } else {
- text = count + ' check-in' + (count == 1 ? '' : 's');
- title = checkins_tooltip(track) + ".\n\n" + title + '.';
- }
- return new Handlebars.SafeString(
- '' + text + ''
- );
+ return checkins_count(track);
+});
+Handlebars.registerHelper('checkedin', function(track) {
+ return checkins_tooltip(track);
});
function checkins_count(track) {