Skip to content
Snippets Groups Projects
Commit dbce63b3 authored by Hugo Kerstens's avatar Hugo Kerstens
Browse files

Only show make live button if there is editable code

parent 5f2d75b7
No related branches found
No related tags found
1 merge request!47Add live code editing using thebelab
Pipeline #17083 passed
......@@ -41,5 +41,9 @@
{% endblock %}
{% block content %}
{% if 'thebelab-code' in super() %}
{{ super() | replace('</h1>', '</h1> <button id="thebelab-activate-button" class="thebelab-button" onclick="initThebelab()">Make live</button>', count=1) }}
{% else %}
{{ super() }}
{% endif %}
{% endblock %}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment