iv class="function-detail">
                <div class="section-title">
                    Versions
                </div>
                <button class="button" id="toggleVersionHistory">Show Versions</button>
                <div id="versionHistory" class="version-history" style="display: none;"></div>
            </div>
        </div>
    </div>
{% endblock %}
{% block scripts %}
    <script>
        window.functionName = "{{ function_name }}";
        window.dashboardRoute = "{{ url_for('dashboard.dash