Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the URLs relative so the admin system can run under a different name. #141

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions flask_peewee/templates/admin/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<link rel="stylesheet" href="{{ url_for('admin.static', filename='css/bootstrap.min.css') }}">
<link rel="stylesheet" href="{{ url_for('admin.static', filename='css/bootstrap.min.responsive.css') }}">
<link rel="stylesheet" href="{{ url_for('admin.static', filename='css/chosen.css') }}">
<link rel="stylesheet" href="{{ url_for('admin.static', filename='css/datepicker.css') }}">
<link rel="stylesheet" href="{{ url_for('admin.static', filename='css/admin.css') }}">
<link rel="stylesheet" href="{{ url_for('.static', filename='css/bootstrap.min.css') }}">
<link rel="stylesheet" href="{{ url_for('.static', filename='css/bootstrap.min.responsive.css') }}">
<link rel="stylesheet" href="{{ url_for('.static', filename='css/chosen.css') }}">
<link rel="stylesheet" href="{{ url_for('.static', filename='css/datepicker.css') }}">
<link rel="stylesheet" href="{{ url_for('.static', filename='css/admin.css') }}">

<script src="{{ url_for('admin.static', filename='js/jquery.min.js') }}"></script>
<script src="{{ url_for('admin.static', filename='js/bootstrap.min.js') }}"></script>
<script src="{{ url_for('admin.static', filename='js/bootstrap-datepicker.js') }}"></script>
<script src="{{ url_for('admin.static', filename='js/chosen.jquery.min.js') }}"></script>
<script src="{{ url_for('admin.static', filename='js/ajax-chosen.min.js') }}"></script>
<script src="{{ url_for('admin.static', filename='js/admin.js') }}"></script>
<script src="{{ url_for('.static', filename='js/jquery.min.js') }}"></script>
<script src="{{ url_for('.static', filename='js/bootstrap.min.js') }}"></script>
<script src="{{ url_for('.static', filename='js/bootstrap-datepicker.js') }}"></script>
<script src="{{ url_for('.static', filename='js/chosen.jquery.min.js') }}"></script>
<script src="{{ url_for('.static', filename='js/ajax-chosen.min.js') }}"></script>
<script src="{{ url_for('.static', filename='js/admin.js') }}"></script>

{% block extra_script %}{% endblock %}
</head>
Expand All @@ -33,9 +33,9 @@
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container-fluid">
<a class="brand" href="{{ url_for('admin.index') }}">{{ branding }}</a>
<a class="brand" href="{{ url_for('.index') }}">{{ branding }}</a>
<ul class="nav">
<li class="active"><a href="{{ url_for('admin.index') }}">Dashboard</a></li>
<li class="active"><a href="{{ url_for('.index') }}">Dashboard</a></li>
<li><a href="/">View site</a></li>
</ul>

Expand Down Expand Up @@ -67,7 +67,7 @@ <h3>Navigation</h3>
<h1>{% block content_title %}{% endblock %} <small>{% block content_tagline %}{% endblock %}</small></h1>
</div>
<ul class="breadcrumb">
<li><a href="{{ url_for('admin.index') }}">Dashboard</a></li>
<li><a href="{{ url_for('.index') }}">Dashboard</a></li>
{% block breadcrumbs %}{% endblock %}
</ul>
{% for category, message in get_flashed_messages(with_categories=true) %}
Expand Down