Blob Blame Raw
{# additional classes for the top navbar #}
{% set masthead_class = "navbar-light masthead p-0" %}

{# site title that shows in the head html element at the end #}
{% set site_title = "src.fedoraproject.org" %}

{% macro projectstring(plural=False) -%}
    {% if plural %}
        Packages
    {% else %}
        Package
    {% endif %}
{% endmacro -%}

{% set projecticon = "fa-archive" %}


{% macro head_imports() %}
    <link rel="shortcut icon" type="image/vnd.microsoft.icon"
        href="{{ url_for('theme.static', filename='favicon.ico')}}?version={{ g.version}}"/>
    <link href="{{ url_for('theme.static', filename='fedora-bootstrap-1.3.0/fedora-bootstrap.min.css')}}?version={{ g.version}}"
        type="text/css" rel="stylesheet" />
    <link href="{{ url_for('theme.static', filename='fonts/fonts.css') }}?version={{ g.version}}"
        rel="stylesheet" type="text/css" />
    <link href="{{ url_for('theme.static', filename='fonts/hack_fonts/css/hack-extended.min.css') }}?version={{ g.version}}"
        type="text/css" rel="stylesheet" />
    <link href="{{ url_for('theme.static', filename='theme.css')}}?version={{ g.version}}"
        type="text/css" rel="stylesheet" />
{% endmacro %}

{% macro js_imports() %}
<script src="{{ url_for('static', filename='vendor/bootstrap/bootstrap.bundle.min.js')}}?version={{ g.version}}"></script>
{% endmacro %}

{% macro browseheader_message(select) %}
    {% if select == 'projects' %}
    <div class="row justify-content-around">
    <div class="col-md-8">
        <div class="jumbotron bg-transparent m-0 py-4 text-center">
            <h1 class="display-5">Welcome to Fedora Package Sources</h1>
            <p class="lead">Fedora's repository for package maintenance.</p>
            </div>
    </div>
    </div>

    {% if not g.authenticated %}
        <section class="container p-t-2">
        <p>
            Welcome, if you're looking to download software to run, look at
            <a href="https://getfedora.org/">https://getfedora.org/</a>, or a
            <a href="https://mirrors.fedoraproject.org/">Fedora Mirror</a>.
            You can also find source RPMs for Fedora-packaged software there.
            The source code for building those packages is found here.
        </p>

        <p>
            If you are looking for RPM spec files, module and container definitions,
            Fedora-specific patches, tests, and so on, you're in the right place.
            You can browse <a href="/browse/projects/">packages</a> and
            <a href="/users">packagers</a> — and you can fork, improve, and submit
            pull requests.
            </p>

        <p>
            If you are already a package maintainer, feel free to consult the
            <a href="https://docs.pagure.org/pagure/usage.html">docs on using
            pagure</a>. If you'd like to become a package maintainer, see
            <a href="https://fedoraproject.org/wiki/Join_the_package_collection_maintainers">
            this guide</a>.
        </p>

        <p>
            Note that package issues are still tracked in
            <a href="https://bugzilla.redhat.com/">Bugzilla</a>,
            not with Pagure's issue feature.
        </p>

        <p>Here below are shortcuts for the different namespaces available:</p>
        <ul>
            <li><a href="/projects/rpms/*">RPMs</a></li>
            <li><a href="/projects/modules/*">modules</a></li>
            <li><a href="/projects/containers/*">containers</a></li>
            <li><a href="/projects/flatpaks/*">flatpaks</a></li>
            <li><a href="/projects/tests/*">tests</a></li>
        </ul>
        </section>
    {% endif %}
    {% endif %}
{% endmacro %}

{% macro footer() %}
    <div class="footer pt-4 text-white">
        <div class="container">
            <div class="d-flex align-items-center">
                <div>
                    <div>Powered by <a href="https://pagure.io/pagure" class="notblue">Pagure</a> {{ g.version }}</div>
                    <div>
                        <a href="https://docs.pagure.org/pagure/usage/index.html" class="notblue">Documentation</a> &bull;
                        <a href="https://pagure.io/pagure/new_issue" class="notblue">File an Issue</a> &bull;
                        <a href="/about">About this Instance</a> &bull;
                        <a href="{{ url_for('ui_ns.ssh_hostkey') }}" class="notblue">SSH Hostkey/Fingerprint</a>
                    </div>
                </div>
                <div class="ml-auto text-right">
                    <div>&copy; 2014-2019 Red Hat, Inc. and others.</div>
                </div>
            </div>
        </div>
    </div>
{% endmacro %}

{% macro about_page() %}
    <div class="container mt-5">
        <h1>About</h1>
        <p>This is an instance of Pagure, a git forge.</p>
        <p>If you experience a bug or security concern, please <a href="https://pagure.io/pagure/issues">submit an issue</a>.</p>
        <p>You may contact an administrator by emailing: <a href="mailto:{{ config['ADMIN_EMAIL'] }}">{{ config['ADMIN_EMAIL'] }}</a>.</p>
        <p><a href="https://lists.pagure.io/admin/lists/pagure-announce.lists.pagure.io/">Subscribe to announcements</a> about Pagure.</p>
    </div>
{% endmacro %}

{% macro about_page() %}
  <div class="container mt-5">
    <h1>About</h1>
    <p>Welcome to this <a href="https://pagure.io/pagure">pagure</a> instance.</p>
    <p>
      For any issue, wish or security concern, feel free to open a ticket,
      either with the <a href="https://pagure.io/fedora-infrastructure/issues">
      Fedora Infrastructure</a> or on the
      <a href="https://pagure.io/pagure/issues">upstream issue tracker</a>
      (please ensure the ticket is private if your concern is security-related
      on either tracker).
    </p>
    <p>
      You may contact an administrator by emailing:
      <a href="mailto:{{ config['ADMIN_EMAIL'] }}">
        {{ config['ADMIN_EMAIL'] }}
      </a>.
    </p>
    <p>Learn more or keep in touch about pagure via our mailing lists:</p>
    <ul>
      <li>
        <a href="https://lists.pagure.io/admin/lists/pagure-announce.lists.pagure.io/">pagure-annouce</a>
      </li>
      <li>
        <a href="https://lists.pagure.io/admin/lists/pagure-devel.lists.pagure.io/">pagure-devel</a>
      </li>
    </ul>
    <p>
      <a href="https://pagure.io/pagure">pagure</a> is a free software licensed
      under the <a href="https://www.gnu.org/licenses/gpl-2.0.txt">
        GNU General Public License (GPL) v2
      </a> or any later versions.
    </p>
    <p>
      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
      General Public License for details.
    </p>
  </div>
{% endmacro %}