contract_source.html 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <!--
  2. This file is part of DarkFi (https://dark.fi)
  3. Copyright (C) 2020-2025 Dyne.org foundation
  4. This program is free software: you can redistribute it and/or modify
  5. it under the terms of the GNU Affero General Public License as
  6. published by the Free Software Foundation, either version 3 of the
  7. License, or (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU Affero General Public License for more details.
  12. You should have received a copy of the GNU Affero General Public License
  13. along with this program. If not, see <https://www.gnu.org/licenses/>.
  14. -->
  15. {% extends "base.html" %}
  16. {% block title %}Contract {{ contract_id }}{% endblock %}
  17. {% block content %}
  18. <div class="content-container">
  19. <!-- Page Content Header -->
  20. <div class="content-header">
  21. <h2 class="content-section-header">{{ contract_name }} Contract Source Code</h2>
  22. <div class="">{{ contract_id }}</div>
  23. </div>
  24. <!-- Source Code -->
  25. <div class="source-code-container">
  26. <div class="source-path">
  27. {{ source_path }}
  28. </div>
  29. <div class="source-code-display-box">
  30. <!--Include Pygments CSS for syntax highlighting-->
  31. <style>{{ pygments_css|safe }}</style>
  32. <!-- Display the highlighted code -->
  33. <pre class="pre-source">{{ source|safe }}</pre>
  34. </div>
  35. </div>
  36. </div>
  37. {% endblock %}