theme.html 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. {# additional classes for the top navbar #}
  2. {% set masthead_class = "navbar-dark bg-dark p-0" %}
  3. {# site title that shows in the head html element at the end #}
  4. {% set site_title = "Pagure" %}
  5. {% macro head_imports() %}
  6. <link rel="shortcut icon" type="image/vnd.microsoft.icon"
  7. href="{{ url_for('theme.static', filename='favicon.ico')}}?version={{ g.version}}"/>
  8. <link rel="stylesheet" href="{{ url_for('static', filename='vendor/bootstrap/bootstrap.min.css')}}?version={{ g.version}}" />
  9. <link href="{{ url_for('theme.static', filename='theme.css') }}?version={{ g.version}}" rel="stylesheet" type="text/css" />
  10. {% endmacro %}
  11. {% macro js_imports() %}
  12. <script src="{{ url_for('static', filename='vendor/bootstrap/bootstrap.bundle.min.js')}}?version={{ g.version}}"></script>
  13. {% endmacro %}
  14. {% macro browseheader_message(select) %}
  15. {#
  16. message that shows at the top of the browse pages:
  17. 'select' is the browse page. It can be either: 'projects',
  18. 'users', or 'groups'.
  19. #}
  20. {% if select == 'projects' %}
  21. <div class="row justify-content-around">
  22. <div class="col-md-8">
  23. <div class="jumbotron bg-transparent m-0 py-4 text-center">
  24. <h1 class="display-5">Welcome to Pagure</h1>
  25. <p class="lead">Pagure is an Open Source software code hosting system.</p>
  26. </div>
  27. </div>
  28. </div>
  29. {% endif %}
  30. {% endmacro %}
  31. {% macro footer() %}
  32. <div class="footer py-3 bg-light border-top text-center">
  33. <div class="container">
  34. <p class="text-muted credit">
  35. Powered by
  36. <a href="https://pagure.io/pagure">Pagure</a>
  37. {{ g.version }}
  38. </p>
  39. <p>
  40. <a href="{{ url_for('ui_ns.ssh_hostkey') }}">SSH Hostkey/Fingerprint</a>
  41. | <a href="https://docs.pagure.org/pagure/usage/index.html">Documentation</a>
  42. | <a href="/about">About</a>
  43. </p>
  44. <p class="text-muted credit">&copy; 2014-2019 Red Hat, Inc. and others.</p>
  45. </div>
  46. </div>
  47. {% endmacro %}
  48. {% macro about_page() %}
  49. <div class="container mt-5">
  50. <h1>About</h1>
  51. <p>Welcome to this <a href="https://pagure.io/pagure">pagure</a> instance.</p>
  52. <p>
  53. For any issue, wish or security concern, feel free to
  54. <a href="https://pagure.io/pagure/issues">open a ticket</a> (please
  55. ensure the ticket is private if your concern is security-related).
  56. </p>
  57. <p>
  58. You may contact an administrator by emailing:
  59. <a href="mailto:{{ config['ADMIN_EMAIL'] }}">
  60. {{ config['ADMIN_EMAIL'] }}
  61. </a>.
  62. </p>
  63. <p>Learn more or keep in touch about pagure via our mailing lists:</p>
  64. <ul>
  65. <li>
  66. <a href="https://lists.pagure.io/admin/lists/pagure-announce.lists.pagure.io/">pagure-annouce</a>
  67. </li>
  68. <li>
  69. <a href="https://lists.pagure.io/admin/lists/pagure-devel.lists.pagure.io/">pagure-devel</a>
  70. </li>
  71. </ul>
  72. <p>
  73. <a href="https://pagure.io/pagure">pagure</a> is a free software licensed
  74. under the <a href="https://www.gnu.org/licenses/gpl-2.0.txt">
  75. GNU General Public License (GPL) v2
  76. </a> or any later versions.
  77. </p>
  78. <p>
  79. This program is distributed in the hope that it will be useful, but
  80. WITHOUT ANY WARRANTY; without even the implied warranty of
  81. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  82. General Public License for details.
  83. </p>
  84. </div>
  85. {% endmacro %}