<!--
 This file is part of DarkFi (https://dark.fi)

 Copyright (C) 2020-2025 Dyne.org foundation

 This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU Affero General Public License as
 published by the Free Software Foundation, either version 3 of the
 License, or (at your option) any later version.

 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU Affero General Public License for more details.

 You should have received a copy of the GNU Affero General Public License
 along with this program.  If not, see <https://www.gnu.org/licenses/>.
-->

{% extends "base.html" %}
{% block title %}Contract {{ contract_id }}{% endblock %}

{% block content %}
<div class="content-container">

    <!-- Page Content Header -->
    <div class="content-header">
        <h2 class="content-section-header">{{ contract_name }} Contract Source Code</h2>
        <div class="">{{ contract_id }}</div>
    </div>

    <!-- Source Code -->
    <div class="source-code-container">
        <div class="source-path">
            {{ source_path }}
        </div>
        <div class="source-code-display-box">
            <!--Include Pygments CSS for syntax highlighting-->
            <style>{{ pygments_css|safe }}</style>
            <!-- Display the highlighted code -->
            <pre class="pre-source">{{ source|safe }}</pre>
        </div>
    </div>
</div>
{% endblock %}

