Add mastery checkboxes

This commit is contained in:
Peder Bergebakken Sundt 2020-03-07 01:29:38 +01:00
parent 984e59234a
commit 44ac35e21b
3 changed files with 18 additions and 0 deletions

View File

@ -180,6 +180,15 @@
{% endfor %} {% endfor %}
</ul> </ul>
{% endif %} {% endif %}
<div class="bottom" style="text-align: center; font-size:1.6em;">
{% for component in xml.components %}
{% if component["@db_entry"] | endswith("Mastery") %}
&#x274F; &#x274F; &#x274F; &#x274F; &#x274F;
&#x274F; &#x274F; &#x274F; &#x274F; &#x274F; <br>
{% endif %}
{% endfor %}
</div>
</div> </div>
</div> </div>

View File

@ -49,6 +49,9 @@ env.addFilter('all', function(iterable) {
env.addFilter('startswith', function(string, match) { env.addFilter('startswith', function(string, match) {
return string.slice(0, match.length) === match; return string.slice(0, match.length) === match;
}); });
env.addFilter('endswith', function(string, match) {
return string.endsWith(match);
});
env.addFilter('tail', function(sequence) { env.addFilter('tail', function(sequence) {
return sequence.slice(1); return sequence.slice(1);
}); });

View File

@ -137,6 +137,12 @@
} }
} }
.bottom {
position: absolute;
bottom:0;
left:0;
right:0;
}
} }
} }