Fix pause/unpause display on web interface
We had flipped the paused state, causing the toggle links to work
incorrectly.  Also, now the schedule shows a ` (paused)` after it, if
the job is paused, to make it apparent.
[[= h(job.name) ]]
</td>
<td class="schedule" data-sort="[[= job.keep_n / job.keep_days * 1000 ]]" data-sort-as="number">
- [[= h(job.schedule) ]]
+ [[= h(job.schedule) ]][[ if (job.paused) { ]] (paused)[[ } ]]
</td>
<td class="name [[= store.healthy ? 'ok' : 'fail' ]]">
<img src="i/shield-[[= store.healthy ? 'ok' : 'fail' ]].svg">
[[= pluralize(job.keep_n, 'backup') ]] / [[= pluralize(job.keep_days, 'day') ]]<br>
</td>
<td> <a href="delete:[[= job.uuid ]]">delete</a> | <a href="run:[[= job.uuid ]]">run</a> |
- [[ if (job.paused == 0) { ]]
- <a href="pause:[[= job.uuid ]]">pause</a>
- [[ } else { ]]
+ [[ if (job.paused) { ]]
<a href="unpause:[[= job.uuid ]]">unpause</a>
+ [[ } else { ]]
+ <a href="pause:[[= job.uuid ]]">pause</a>
[[ } ]]
</td>
</tr>
