Browse Source

Do not display slotrefs for unreservable slots

Stop displaying slot reference codes in the "additional tracks"
table if the slot is actually not bookable

Change-Id: I367d75bcfc289475d28df2bbd524adda059f4b05
changes/62/540362/1
Thierry Carrez 3 years ago
parent
commit
3781e486f7
2 changed files with 8 additions and 1 deletions
  1. +1
    -1
      html/ptg.html
  2. +7
    -0
      html/ptg.js

+ 1
- 1
html/ptg.html View File

@ -114,7 +114,7 @@
{{#if (lookup schedule time.name)}}
<td><span class="label label-primary {{lookup schedule time.name}}">{{lookup schedule time.name}}</td>
{{else}}
<td><small><i>{{room}}-{{time.name}}</i></small></td>
<td><small><i>{{roomcode schedule room time.name}}</i></small></td>
{{/if}}
{{/each}}
</tr>


+ 7
- 0
html/ptg.js View File

@ -18,6 +18,13 @@ Handlebars.registerHelper('hashtag', function(options) {
return new Handlebars.SafeString(sentence);
});
Handlebars.registerHelper('roomcode', function(schedule, room, timecode) {
if (schedule[timecode] == "") {
return room + "-" + timecode;
}
return "";
});
// What is the day today ?
var now = new Date();
var days = ['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'];


Loading…
Cancel
Save