summaryrefslogtreecommitdiffstats
path: root/roles/pagure/upstreamfirst-frontend/files/upstreamfirst-master.html
blob: 080e1a42f5cc0241d021e308eaf810cf1801bd51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
<!DOCTYPE html>
<html lang='en'>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <title>{% block title %}{% endblock %} - Upstream First Pagure</title>
    <link rel="shortcut icon" type="image/vnd.microsoft.icon"
        href="{{ url_for('static', filename='favicon.ico')}}"/>
    <link href="{{ config['BOOTSTRAP_URLS_CSS'] }}"
        type="text/css" rel="stylesheet" />
    <link href="{{ url_for('static', filename='pagure.css') }}"
        type="text/css" rel="stylesheet" />
    <link href="{{ url_for('static', filename='vendor/open-iconic/css/open-iconic.min.css') }}"
        type="text/css" rel="stylesheet" />
    <link href="{{ url_for('static', filename='fonts/fonts.css') }}"
        rel="stylesheet" type="text/css" />
    <link href="{{ url_for('static', filename='vendor/hack_fonts/css/hack-extended.min.css') }}"
        type="text/css" rel="stylesheet" />
    {% block header %}{% endblock %}
  </head>
  <body id="{{ tag }}">
  <!-- start masthead -->
    <div class="masthead">
      <div class="container">
        <div class="row">
          <div class="col-sm-3">
            <a href="{{ url_for('index') }}">
              <img height=40px src="{{ url_for('static', filename='upstreamfirst_plain.png') }}"
                alt="pagure Logo" id="pagureLogo"/>
            </a>
          </div>
          <div class="col-sm-9">
            <div class="row">

  <nav class="navbar navbar-light p-t-0 p-b-0">
      <div class="container">
        <ul class="nav navbar-nav nav-underline pull-xs-right">
          {% if not nologin %}
            {% if g.fas_user %}
              <li class="nav-item">
                <a class="nav-link" href="{{ url_for('browse_projects') }}">Browse</a>
              </li>
              {% if config.get('ENABLE_NEW_PROJECTS', True) %}
                <li class="nav-item p-l-1">
                  <a class="nav-link" href="{{ url_for('new_project') }}">
                      <span class="oi" data-glyph="plus" title="Create New"
                          aria-hidden="true">
                      </span>
                  </a>
                </li>
              {% endif %}
              <li class="nav-item dropdown p-l-1">
                <a class="nav-link dropdown-toggle" data-toggle="dropdown"
                   href="#" role="button" aria-haspopup="true" aria-expanded="false">
                  {{ g.fas_user.username | avatar(24) | safe }}
                </a>
                <div class="dropdown-menu dropdown-menu-right">
                  <div class="dropdown-header">
                    <strong>{{ g.fas_user.username }}</strong>
                  </div>
                  <div class="dropdown-divider"></div>
                  <a class="dropdown-item" href="{{
                    url_for('view_user', username=g.fas_user.username)
                    }}">My Public Profile</a>
                  <a class="dropdown-item" href="{{
                    url_for('user_settings')
                    }}">My Settings</a>
                  <div class="dropdown-divider"></div>
                  {% if config.get('ENABLE_TICKETS', True) %}
                    <a class="dropdown-item" href="{{
                      url_for('view_user_issues', username=g.fas_user.username)
                      }}">My Issues</a>
                  {% endif %}
                  <a class="dropdown-item" href="{{
                    url_for('view_user_requests', username=g.fas_user.username)
                    }}">My Pull Requests</a>
                  <div class="dropdown-divider"></div>
                  <a class="dropdown-item" href="{{ url_for('auth_logout')
                    }}?next={{request.url}}">Log Out</a>
                </div>
              </li>
            {% else %}
              <li class="nav-item p-l-1">
                <a class="nav-link btn btn-primary" href="{{
                url_for('auth_login') }}?next={{request.url
                }}">Log In</a>
              </li>
            {% endif %}
         {% endif %}
        </ul>
      </div>
    </nav>

            </div>
          </div>
        </div>
      </div>
    </div><!-- close masthead-->

    <div class="bodycontent p-b-3">

            {% with messages = get_flashed_messages(with_categories=true) %}
                {% if messages %}
                <div class="notification-spacer">
                <div class="container p-t-2">
                    {% for category, message in messages %}
                    <div class="alert {%
                      if category == 'error' %}alert-warning{%
                      else %}alert-info{%
                      endif %} alert-dismissible" role="alert">
                      <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                        <span aria-hidden="true">&times;</span>
                        <span class="sr-only">Close</span>
                      </button>
                      {{ message }}
                    </div>
                    {% endfor %}
                </div>
                </div>
                {% endif %}
            {% endwith %}
            {% if new_user %}
              <div class="notification-spacer">
                <div class="container p-t-2">
                    <div class="alert alert-info alert-dismissible" role="alert">
                      <button type="button" class="close" data-dismiss="alert"
                          aria-label="Close">
                        <span aria-hidden="true">&times;</span>
                        <span class="sr-only">Close</span>
                      </button>
                      <h4 class="modal-title" id="welcome_title">
                        Welcome to {{ config['INSTANCE_NAME'] }}, {{ g.fas_user.username }}!
                      </h4>
                      <div class="modal-body">
                        <p>
                          We are glad to welcome you to pagure.
                        </p>
                        <p>
                          In order to get started with pagure, to set-up
                          your preferred email address or your ssh key,
                          you may want to read the
                          <a href="https://docs.pagure.org/pagure/usage/first_steps.html">
                          First steps in Pagure</a> documentation.
                        </p>
                        <p>
                          You may also find some more information on how to use pagure
                          in the <a href="https://docs.pagure.org/pagure/usage.html">
                          usage section of the documentation</a>.
                        </p>
                      </div>
                    </div>
                </div>
              </div>
            {% endif %}

            {% block content %}{% endblock %}
    </div>

    <div class="footer p-t-1 p-b-1">
        <div class="container">
            <p class="text-muted credit">
         Copyright &copy; 2014-2017 Red Hat
          <a href="https://pagure.io/pagure">pagure</a> &mdash;
          {{version}} &mdash; <a href="https://docs.pagure.org/pagure/usage.html">Documentation</a>
            </p>
            <p><a href="{{ url_for('ssh_hostkey') }}">SSH Hostkey/Fingerprint</a></p>
        </div>
    </div>

    {% block jscripts %}
    <script type="text/javascript"
        src="{{ url_for('static',
            filename='vendor/jquery/jquery.min.js') }}">
    </script>
    <script type="text/javascript"
        src="{{ url_for('static',
            filename='vendor/jquery-ui/jquery-ui.min.js') }}">
    </script>
    <script type="text/javascript"
        src="{{ config['BOOTSTRAP_URLS_JS'] }}">
    </script>
    <script type="text/javascript">
$('[data-toggle="tooltip"]').tooltip({placement : 'bottom'});
    </script>
    {% endblock %}

{% if config['FEDMENU_URL'] %}
<script src="{{ config['FEDMENU_URL'] }}/js/fedmenu.js"></script>
<script src="{{ config['FEDMENU_URL'] }}/js/fedora-libravatar.js"></script>
<script>
  fedmenu({
    'url': '{{ config["FEDMENU_DATA_URL"] }}',
    'mimeType': 'application/javascript',
    'position': 'bottom-right',
    {% if user -%}
    'user': '{{ user.username }}',
    {%- endif %}
  });
</script>
{% endif %}

</body>
</html>