| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <!--
- This file is part of DarkFi (https://dark.fi)
- Copyright (C) 2020-2026 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>{{ contract_id }}</div>
- </div>
- <!-- Source File List -->
- <div>
- {% if source_paths %}
- <!-- Source Code List -->
- <ul class="source-code-list">
- {% for path in source_paths %}
- <li class="source-code-list-item">
- <a href="/contract/source/{{ contract_id }}/{{ path }}?name={{ contract_name|urlencode }}"
- class="source-file-link">
- {{ path }}
- </a>
- </li>
- {% endfor %}
- </ul>
- {% else %}
- <!-- No source code associated with contract -->
- <div>
- There is no source files are associated with this contract.
- </div>
- {% endif %}
- </div>
- </div>
- {% endblock %}
|