I think the best solution is to just hide the checkboxes and only show them when you hover over the topic.
Then it doesn't really matter where they are located, because they don't distract attention.
question of templating logic
-
@xidui said in question of templating logic:
specific number is exactly 99
that does not sound complicated
-
@pichalite
seems the following does not work<!-- IF some_var == 99 --> <div></div> <!-- ENDIF some_var == 99 -->
I made a work around:
<div id="hello"> </div> <script> if ({some_var} != 99) { $('#hello').hide(); } </script>
But I don't like this work around. Since it is javascript that controls the templating thing, not the template engine itself.
-
@xidui it's not straight forward... you will have to use helpers.
see here... https://github.com/psychobunny/templates.js#helpers