theme.html 4.2 KB

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