| |
@@ -5,6 +5,7 @@
|
| |
<html lang='en'>
|
| |
<head>
|
| |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
|
| |
+ <meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
|
| |
<title>{% block title %}{% endblock %} - {{ theme.site_title }}</title>
|
| |
{{ theme.head_imports() }}
|
| |
<link type="text/css" rel="stylesheet" nonce="{{ g.nonce }}" href="{{
|
| |
@@ -16,93 +17,97 @@
|
| |
<body id="{{ tag }}">
|
| |
{{theme.sitewide_message() if theme.sitewide_message is defined}}
|
| |
<!-- start masthead -->
|
| |
- <nav class="navbar {{theme.masthead_class}} navbar-expand">
|
| |
- <div class="container">
|
| |
- <a href="{{ url_for('ui_ns.index') }}" class="navbar-brand">
|
| |
- <img height=40px src="{{ url_for('theme.static', filename='pagure-logo.png') }}?version={{ g.version}}"
|
| |
- alt="pagure Logo" id="pagureLogo"/>
|
| |
- </a>
|
| |
- <ul class="navbar-nav ml-auto">
|
| |
+ <nav class="{{theme.masthead_class}} pagure-app-bar pagure-app-bar--top">
|
| |
+ <div class="container pagure-app-bar__row">
|
| |
+ <div class="pagure-app-bar__section pagure-app-bar__section--start">
|
| |
+ <a href="{{ url_for('ui_ns.index') }}" class="navbar-brand">
|
| |
+ <img height=40px src="{{ url_for('theme.static', filename='pagure-logo.png') }}?version={{ g.version}}"
|
| |
+ alt="pagure Logo" id="pagureLogo"/>
|
| |
+ </a>
|
| |
+ </div>
|
| |
+ <div class="pagure-app-bar__section pagure-app-bar__section--end">
|
| |
+ <ul class="pagure-app-bar__nav navbar-nav">
|
| |
|
| |
- {# These two lines allow a theme or a blueprint to inject custom
|
| |
- # buttons in the navigation bar.
|
| |
- #}
|
| |
- {{theme.masthead_navbar_items() if theme.masthead_navbar_items is defined}}
|
| |
- {% block masthead_navbar_items %}{% endblock %}
|
| |
-
|
| |
- {% if not nologin %}
|
| |
- {% if g.fas_user %}
|
| |
- <li class="nav-item ml-3">
|
| |
- <a class="nav-link font-weight-bold" href="{{ url_for('ui_ns.browse_projects') }}">
|
| |
- Browse
|
| |
- </a>
|
| |
- </li>
|
| |
- {% if (config.get('ENABLE_NEW_PROJECTS', True) and config.get('ENABLE_UI_NEW_PROJECTS', True))
|
| |
- or config.get('ENABLE_GROUP_MNGT', False) %}
|
| |
- <li class="nav-item dropdown ml-3">
|
| |
- <a class="nav-link dropdown-toggle font-weight-bold"
|
| |
- data-toggle="dropdown"
|
| |
- href="#"
|
| |
- role="button" aria-haspopup="true"
|
| |
- aria-expanded="false">
|
| |
- Create
|
| |
- </a>
|
| |
- <div class="dropdown-menu dropdown-menu-right">
|
| |
- {% if config.get('ENABLE_NEW_PROJECTS', True) and config.get('ENABLE_UI_NEW_PROJECTS', True) %}
|
| |
- <a class="dropdown-item" href="{{ url_for('ui_ns.new_project') }}">
|
| |
- <span class="fa {{projecticon()}}"></span> New {{projectstring()}}
|
| |
+ {# These two lines allow a theme or a blueprint to inject custom
|
| |
+ # buttons in the navigation bar.
|
| |
+ #}
|
| |
+ {{theme.masthead_navbar_items() if theme.masthead_navbar_items is defined}}
|
| |
+ {% block masthead_navbar_items %}{% endblock %}
|
| |
+
|
| |
+ {% if not nologin %}
|
| |
+ {% if g.fas_user %}
|
| |
+ <li class="nav-item ml-3">
|
| |
+ <a class="nav-link font-weight-bold" href="{{ url_for('ui_ns.browse_projects') }}">
|
| |
+ Browse
|
| |
</a>
|
| |
- {% endif %}
|
| |
- {% if config.get('ENABLE_GROUP_MNGT', False) %}
|
| |
- <a class="dropdown-item" href="{{ url_for('ui_ns.add_group') }}">
|
| |
- <span class="fa fa-users"></span> New Group
|
| |
+ </li>
|
| |
+ {% if (config.get('ENABLE_NEW_PROJECTS', True) and config.get('ENABLE_UI_NEW_PROJECTS', True))
|
| |
+ or config.get('ENABLE_GROUP_MNGT', False) %}
|
| |
+ <li class="nav-item dropdown ml-3">
|
| |
+ <a class="nav-link dropdown-toggle font-weight-bold"
|
| |
+ data-toggle="dropdown"
|
| |
+ href="#"
|
| |
+ role="button" aria-haspopup="true"
|
| |
+ aria-expanded="false">
|
| |
+ Create
|
| |
</a>
|
| |
- {% endif %}
|
| |
- </div>
|
| |
- </li>
|
| |
- {% endif %}
|
| |
- <li class="nav-item dropdown ml-3">
|
| |
- <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 class="dropdown-menu dropdown-menu-right">
|
| |
+ {% if config.get('ENABLE_NEW_PROJECTS', True) and config.get('ENABLE_UI_NEW_PROJECTS', True) %}
|
| |
+ <a class="dropdown-item" href="{{ url_for('ui_ns.new_project') }}">
|
| |
+ <span class="fa {{projecticon()}}"></span> New {{projectstring()}}
|
| |
+ </a>
|
| |
+ {% endif %}
|
| |
+ {% if config.get('ENABLE_GROUP_MNGT', False) %}
|
| |
+ <a class="dropdown-item" href="{{ url_for('ui_ns.add_group') }}">
|
| |
+ <span class="fa fa-users"></span> New Group
|
| |
+ </a>
|
| |
+ {% endif %}
|
| |
</div>
|
| |
- <div class="dropdown-divider"></div>
|
| |
- <a class="dropdown-item" href="{{
|
| |
- url_for('ui_ns.view_user', username=g.fas_user.username)
|
| |
- }}">My Public Profile</a>
|
| |
- <a class="dropdown-item" href="{{
|
| |
- url_for('ui_ns.user_settings')
|
| |
- }}">My Settings</a>
|
| |
- <div class="dropdown-divider"></div>
|
| |
- <a class="dropdown-item" href="{{
|
| |
- url_for('ui_ns.userprofile_starred', username=g.fas_user.username)
|
| |
- }}">My Starred Projects</a>
|
| |
- {% if config.get('ENABLE_TICKETS', True) %}
|
| |
- <a class="dropdown-item" href="{{
|
| |
- url_for('ui_ns.view_user_issues', username=g.fas_user.username)
|
| |
- }}">My Issues</a>
|
| |
- {% endif %}
|
| |
- <a class="dropdown-item" href="{{
|
| |
- url_for('ui_ns.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">
|
| |
- <a class="btn btn-primary" href="{{
|
| |
- url_for('auth_login') }}?next={{request.url
|
| |
- }}">Log In</a>
|
| |
- </li>
|
| |
- {% endif %}
|
| |
- {% endif %}
|
| |
- </ul>
|
| |
+ </li>
|
| |
+ {% endif %}
|
| |
+ <li class="nav-item dropdown ml-3">
|
| |
+ <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('ui_ns.view_user', username=g.fas_user.username)
|
| |
+ }}">My Public Profile</a>
|
| |
+ <a class="dropdown-item" href="{{
|
| |
+ url_for('ui_ns.user_settings')
|
| |
+ }}">My Settings</a>
|
| |
+ <div class="dropdown-divider"></div>
|
| |
+ <a class="dropdown-item" href="{{
|
| |
+ url_for('ui_ns.userprofile_starred', username=g.fas_user.username)
|
| |
+ }}">My Starred Projects</a>
|
| |
+ {% if config.get('ENABLE_TICKETS', True) %}
|
| |
+ <a class="dropdown-item" href="{{
|
| |
+ url_for('ui_ns.view_user_issues', username=g.fas_user.username)
|
| |
+ }}">My Issues</a>
|
| |
+ {% endif %}
|
| |
+ <a class="dropdown-item" href="{{
|
| |
+ url_for('ui_ns.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">
|
| |
+ <a class="btn btn-primary" href="{{
|
| |
+ url_for('auth_login') }}?next={{request.url
|
| |
+ }}">Log In</a>
|
| |
+ </li>
|
| |
+ {% endif %}
|
| |
+ {% endif %}
|
| |
+ </ul>
|
| |
+ </div>
|
| |
</div>
|
| |
</nav>
|
| |
<!-- close masthead-->
|
| |
@@ -181,6 +186,5 @@
|
| |
});
|
| |
</script>
|
| |
{% endblock %}
|
| |
-
|
| |
</body>
|
| |
</html>
|
| |
This improves the styling of Pagure's top app bars by:
Before:
Desktop:
Mobile:
After:
Desktop:
Mobile:
Signed-off-by: Carson Black uhhadd@gmail.com