mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-09 12:30:15 +02:00
Drop BS3 templates
This commit is contained in:
parent
cc11761d8e
commit
757c6fa491
@ -1,10 +0,0 @@
|
|||||||
{% extends 'allianceauth/base.html' %}
|
|
||||||
|
|
||||||
|
|
||||||
{% block page_title %}Dashboard{% endblock page_title %}
|
|
||||||
|
|
||||||
{% block content %}
|
|
||||||
<div>
|
|
||||||
<h1>Dashboard Dummy</h1>
|
|
||||||
</div>
|
|
||||||
{% endblock %}
|
|
@ -1,10 +0,0 @@
|
|||||||
// Import the fonts from CDN
|
|
||||||
@font-face {
|
|
||||||
font-family: 'Glyphicons Halflings';
|
|
||||||
src: url('https://cdnjs.cloudflare.com/ajax/libs/bootswatch/3.4.0/fonts/glyphicons-halflings-regular.eot');
|
|
||||||
src: url('https://cdnjs.cloudflare.com/ajax/libs/bootswatch/3.4.0/fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'),
|
|
||||||
url('https://cdnjs.cloudflare.com/ajax/libs/bootswatch/3.4.0/fonts/glyphicons-halflings-regular.woff2') format('woff2'),
|
|
||||||
url('https://cdnjs.cloudflare.com/ajax/libs/bootswatch/3.4.0/fonts/glyphicons-halflings-regular.woff') format('woff'),
|
|
||||||
url('https://cdnjs.cloudflare.com/ajax/libs/bootswatch/3.4.0/fonts/glyphicons-halflings-regular.ttf') format('truetype'),
|
|
||||||
url('https://cdnjs.cloudflare.com/ajax/libs/bootswatch/3.4.0/fonts/glyphicons-halflings-regular.svg#@{icon-font-svg-id}') format('svg');
|
|
||||||
}
|
|
@ -1,21 +0,0 @@
|
|||||||
The MIT License (MIT)
|
|
||||||
|
|
||||||
Copyright (c) 2013 Thomas Park
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
|
||||||
in the Software without restriction, including without limitation the rights
|
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
copies of the Software, and to permit persons to whom the Software is
|
|
||||||
furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in
|
|
||||||
all copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
||||||
THE SOFTWARE.
|
|
@ -1,9 +0,0 @@
|
|||||||
// Alliance Auth customisations of the bootswatch Darkly theme
|
|
||||||
// To build a new CSS file you need to `npm install -g less less-plugin-clean-css`
|
|
||||||
// Then `lessc --clean-css="--advanced" darkly.less darkly.min.css`
|
|
||||||
|
|
||||||
@import "https://raw.githubusercontent.com/thomaspark/bootswatch/v3/bower_components/bootstrap/less/bootstrap.less";
|
|
||||||
@import "https://raw.githubusercontent.com/thomaspark/bootswatch/v3/darkly/variables.less";
|
|
||||||
@import "https://raw.githubusercontent.com/thomaspark/bootswatch/fa207fbbc80bd74339e179b054a322b092be98f6/darkly/bootswatch.less";
|
|
||||||
@import "../bootstrap-locals.less";
|
|
||||||
@import "../flatly-shared.less";
|
|
File diff suppressed because one or more lines are too long
@ -1,31 +0,0 @@
|
|||||||
// Shared variables between flatly and darkly themes
|
|
||||||
|
|
||||||
// Fade down table row colors to prevent them looking like a bag of skittles
|
|
||||||
@table-bg-fade-percent: 20%;
|
|
||||||
|
|
||||||
.table-row-variant(active; fade(@table-bg-active, @table-bg-fade-percent));
|
|
||||||
.table-row-variant(success; fade(@state-success-bg, @table-bg-fade-percent));
|
|
||||||
.table-row-variant(info; fade(@state-info-bg, @table-bg-fade-percent));
|
|
||||||
.table-row-variant(warning; fade(@state-warning-bg, @table-bg-fade-percent));
|
|
||||||
.table-row-variant(danger; fade(@state-danger-bg, @table-bg-fade-percent));
|
|
||||||
|
|
||||||
|
|
||||||
// From bootswatch Superhero
|
|
||||||
@brand-success: #5cb85c;
|
|
||||||
@brand-warning: #f0ad4e;
|
|
||||||
@brand-danger: #d9534f;
|
|
||||||
|
|
||||||
|
|
||||||
// Bootstrap extension, allow vertical columns to be same height
|
|
||||||
.row.vertical-flexbox-row {
|
|
||||||
display: -webkit-box;
|
|
||||||
display: -webkit-flex;
|
|
||||||
display: -ms-flexbox;
|
|
||||||
display: flex;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
}
|
|
||||||
|
|
||||||
.row.vertical-flexbox-row > [class*='col-'] {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
}
|
|
@ -1,21 +0,0 @@
|
|||||||
The MIT License (MIT)
|
|
||||||
|
|
||||||
Copyright (c) 2013 Thomas Park
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
|
||||||
in the Software without restriction, including without limitation the rights
|
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
copies of the Software, and to permit persons to whom the Software is
|
|
||||||
furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in
|
|
||||||
all copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
||||||
THE SOFTWARE.
|
|
@ -1,35 +0,0 @@
|
|||||||
// Alliance Auth customisations of the bootswatch Flatly theme
|
|
||||||
// To build a new CSS file you need to `npm install -g less less-plugin-clean-css`
|
|
||||||
// Then `lessc --clean-css="--advanced" flatly.less flatly.min.css`
|
|
||||||
|
|
||||||
@import "https://raw.githubusercontent.com/thomaspark/bootswatch/v3/bower_components/bootstrap/less/bootstrap.less";
|
|
||||||
@import "https://raw.githubusercontent.com/thomaspark/bootswatch/v3/flatly/variables.less";
|
|
||||||
@import "https://raw.githubusercontent.com/thomaspark/bootswatch/fa207fbbc80bd74339e179b054a322b092be98f6/flatly/bootswatch.less";
|
|
||||||
@import "../bootstrap-locals.less";
|
|
||||||
@import "../flatly-shared.less";
|
|
||||||
|
|
||||||
.nav-tabs > li > a,
|
|
||||||
.nav-pills > li > a {
|
|
||||||
color: #000;
|
|
||||||
}
|
|
||||||
|
|
||||||
// From bootswatch Superhero
|
|
||||||
@brand-info: #5bc0de;
|
|
||||||
|
|
||||||
@table-bg-fade-percent: 40%;
|
|
||||||
|
|
||||||
// Fixup table colors to match fade
|
|
||||||
.table {
|
|
||||||
.active,
|
|
||||||
.success,
|
|
||||||
.info,
|
|
||||||
.warning,
|
|
||||||
.danger {
|
|
||||||
color: @gray-darker;
|
|
||||||
> td {
|
|
||||||
> a:not(.btn) {
|
|
||||||
color: @link-color;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
File diff suppressed because one or more lines are too long
@ -1,64 +0,0 @@
|
|||||||
{% load i18n %}
|
|
||||||
{% load navactive %}
|
|
||||||
{% load auth_notifications %}
|
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="{{ LANGUAGE_CODE }}">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
||||||
<meta name="description" content="">
|
|
||||||
<meta name="author" content="">
|
|
||||||
{% include 'allianceauth/icons.html' %}
|
|
||||||
|
|
||||||
<title>{% block title %}{% block page_title %}{% endblock page_title %} - {{ SITE_NAME }}{% endblock title %}</title>
|
|
||||||
|
|
||||||
{% include 'bundles/bootstrap-css.html' %}
|
|
||||||
{% include 'bundles/fontawesome.html' %}
|
|
||||||
{% include 'bundles/auth-base-css.html' %}
|
|
||||||
|
|
||||||
{% block extra_css %}{% endblock extra_css %}
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body class="{% if NIGHT_MODE %}template-dark-mode{% else %}template-light-mode{% endif %}">
|
|
||||||
<div id="wrapper" class="container">
|
|
||||||
<!-- Navigation -->
|
|
||||||
{% include 'allianceauth/top-menu.html' %}
|
|
||||||
|
|
||||||
<div class="clearfix{% if user.is_authenticated %} row{% endif %}" id="site-body-wrapper">
|
|
||||||
{% if user.is_authenticated %}
|
|
||||||
{% include 'allianceauth/side-menu.html' %}
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
<div class="{% if user.is_authenticated %}col-sm-10{% else %}col-sm-12{% endif %}">
|
|
||||||
{% include 'allianceauth/messages.html' %}
|
|
||||||
|
|
||||||
{% block content %}
|
|
||||||
{% endblock content %}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{% include 'bundles/bootstrap-js.html' %}
|
|
||||||
{% include 'bundles/jquery-visibility-js.html' %}
|
|
||||||
|
|
||||||
{% if user.is_authenticated %}
|
|
||||||
<script>
|
|
||||||
let notificationUPdateSettings = {
|
|
||||||
notificationsListViewUrl: "{% url 'notifications:list' %}",
|
|
||||||
notificationsRefreshTime: "{% notifications_refresh_time %}",
|
|
||||||
userNotificationsCountViewUrl: "{% url 'notifications:user_notifications_count' request.user.pk %}"
|
|
||||||
};
|
|
||||||
</script>
|
|
||||||
{% include 'bundles/refresh-notifications-js.html' %}
|
|
||||||
{% endif %}
|
|
||||||
{% include 'bundles/evetime-js.html' %}
|
|
||||||
|
|
||||||
{% block extra_javascript %}
|
|
||||||
{% endblock extra_javascript %}
|
|
||||||
<script>
|
|
||||||
{% block extra_script %}
|
|
||||||
{% endblock extra_script %}
|
|
||||||
</script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -1,27 +0,0 @@
|
|||||||
{% load i18n %}
|
|
||||||
|
|
||||||
{% if messages %}
|
|
||||||
{% for message in messages %}
|
|
||||||
<div class="alert alert-{{ message.level_tag }} alert-dismissible" role="alert">
|
|
||||||
<button type="button" class="close" data-dismiss="alert" aria-label="{% translate 'Close' %}">
|
|
||||||
<span aria-hidden="true">×</span>
|
|
||||||
</button>
|
|
||||||
|
|
||||||
<div class="message-icon pull-left" style="margin-right: 0.5rem;">
|
|
||||||
{% if message.level_tag == "info" %}
|
|
||||||
<i class="fa-solid fa-info-circle"></i>
|
|
||||||
{% elif message.level_tag == "success" %}
|
|
||||||
<i class="fa-solid fa-check-circle"></i>
|
|
||||||
{% elif message.level_tag == "warning" %}
|
|
||||||
<i class="fa-solid fa-exclamation-circle"></i>
|
|
||||||
{% elif "danger" in message.level_tag %}
|
|
||||||
<i class="fa-solid fa-exclamation-triangle"></i>
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="message-text" style="margin-left: 2.5rem;">
|
|
||||||
{{ message }}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endfor %}
|
|
||||||
{% endif %}
|
|
@ -1,8 +0,0 @@
|
|||||||
{% load i18n %}
|
|
||||||
|
|
||||||
<li>
|
|
||||||
<a href="{% url 'nightmode' %}?next={{ request.path|urlencode }}">
|
|
||||||
<i class="fa-solid {% if NIGHT_MODE %}fa-toggle-on{% else %}fa-toggle-off{% endif %}" aria-hidden="true"></i>
|
|
||||||
{% translate "Night Mode" %}
|
|
||||||
</a>
|
|
||||||
</li>
|
|
@ -1,72 +0,0 @@
|
|||||||
{% load i18n %}
|
|
||||||
{% load evelinks %}
|
|
||||||
|
|
||||||
<li class="top-user-menu dropdown{% if request.user.profile.main_character %} with-main-character{% endif %}">
|
|
||||||
<a href="#" class="dropdown-toggle" type="button" id="top-user-menu" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
|
|
||||||
{% if request.user.profile.main_character %}
|
|
||||||
{% with request.user.profile.main_character as main %}
|
|
||||||
<img class="img-rounded ra-avatar" src="{{ main.character_id|character_portrait_url:32 }}" alt="{{ main.character_name }}">
|
|
||||||
<span class="hidden-sm hidden-md hidden-lg">
|
|
||||||
{{ main.character_name }} - {% translate "User Menu" %}
|
|
||||||
</span>
|
|
||||||
{% endwith %}
|
|
||||||
{% else %}
|
|
||||||
<img class="img-rounded ra-avatar" src="{{ 1|character_portrait_url:32 }}" alt="{{ main.character_name }}">
|
|
||||||
<span class="hidden-sm hidden-md hidden-lg">
|
|
||||||
{% translate "User Menu" %}
|
|
||||||
</span>
|
|
||||||
{% endif %}
|
|
||||||
<span class="caret"></span>
|
|
||||||
</a>
|
|
||||||
|
|
||||||
<ul class="dropdown-menu top-user-menu" aria-labelledby="top-user-menu">
|
|
||||||
<!-- user avatar -->
|
|
||||||
{% if request.user.profile.main_character %}
|
|
||||||
<li>
|
|
||||||
{% with request.user.profile.main_character as main %}
|
|
||||||
<p class="text-center">
|
|
||||||
<img class="img-rounded ra-avatar" src="{{ main.character_id|character_portrait_url:256 }}" alt="{{ main.character_name }}">
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<p class="text-center">
|
|
||||||
<span style="display: block;">{{ main.character_name }}</span>
|
|
||||||
<span style="display: block;">{{ main.corporation_name }}</span>
|
|
||||||
|
|
||||||
{% if main.alliance_name %}
|
|
||||||
<span style="display: block;">{{ main.alliance_name }}</span>
|
|
||||||
{% endif %}
|
|
||||||
</p>
|
|
||||||
{% endwith %}
|
|
||||||
</li>
|
|
||||||
<li role="separator" class="divider"></li>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
<li class="top-menu-bar-language-select">
|
|
||||||
{% include 'public/lang_select.html' %}
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li role="separator" class="divider"></li>
|
|
||||||
|
|
||||||
<!-- night mode toggle -->
|
|
||||||
{% include 'allianceauth/night-toggle.html' %}
|
|
||||||
|
|
||||||
<!-- admin related menu items -->
|
|
||||||
{% include 'allianceauth/top-menu-admin.html' %}
|
|
||||||
|
|
||||||
<!-- logout / login -->
|
|
||||||
<li role="separator" class="divider"></li>
|
|
||||||
{% if user.is_authenticated %}
|
|
||||||
<li>
|
|
||||||
<a href="{% url 'authentication:token_management' %}">
|
|
||||||
<i class="fa-solid fa-user-lock"></i>
|
|
||||||
{% translate "Token Management" %}
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
<li role="separator" class="divider"></li>
|
|
||||||
|
|
||||||
<li><a href="{% url 'logout' %}">{% translate "Logout" %}</a></li>
|
|
||||||
{% else %}
|
|
||||||
<li><a href="{% url 'authentication:login' %}">{% translate "Login" %}</a></li>
|
|
||||||
{% endif %}
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
@ -1,36 +0,0 @@
|
|||||||
{% load i18n %}
|
|
||||||
{% load static %}
|
|
||||||
{% load navactive %}
|
|
||||||
<nav class="navbar navbar-default navbar-static-top auth-navbar-top" role="navigation">
|
|
||||||
<div class="container-fluid">
|
|
||||||
<div class="navbar-header">
|
|
||||||
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".auth-menus-collapse">
|
|
||||||
<span class="sr-only">{% translate "Toggle navigation" %}</span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
</button>
|
|
||||||
|
|
||||||
<a class="navbar-brand">
|
|
||||||
<img src="{% static 'allianceauth/icons/favicon-32x32.png' %}" style="display: inline-block;" height="32" width="32" alt="{{ SITE_NAME }}">
|
|
||||||
{{ SITE_NAME }}
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="collapse navbar-collapse auth-menus-collapse">
|
|
||||||
<ul class="nav navbar-nav navbar-right navbar-pills">
|
|
||||||
<li class="nav-item-eve-time">
|
|
||||||
<div class="eve-time-wrapper">{% translate "Eve Time" %}: <span class="eve-time-clock"></span></div>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
{% if user.is_authenticated %}
|
|
||||||
<li class="{% navactive request 'notifications:' %}" id="menu_item_notifications">
|
|
||||||
{% include 'allianceauth/notifications_menu_item.html' %}
|
|
||||||
</li>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% include 'allianceauth/top-menu-user-dropdown.html' %}
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</nav>
|
|
@ -1,20 +0,0 @@
|
|||||||
{% load static %}
|
|
||||||
<!-- Bootstrap CSS -->
|
|
||||||
{% if NIGHT_MODE %}
|
|
||||||
{% if debug %}
|
|
||||||
<!-- In template debug, loading less file instead of CSS -->
|
|
||||||
<link rel="stylesheet/less" href="{% static 'allianceauth/css/themes/darkly/darkly.less' %}">
|
|
||||||
<script src='https://cdnjs.cloudflare.com/ajax/libs/less.js/4.1.3/less.min.js' integrity='sha512-6gUGqd/zBCrEKbJqPI7iINc61jlOfH5A+SluY15IkNO1o4qP1DEYjQBewTB4l0U4ihXZdupg8Mb77VxqE+37dg==' crossorigin='anonymous' referrerpolicy="no-referrer"></script>
|
|
||||||
{% else %}
|
|
||||||
<link rel="stylesheet" href="{% static 'allianceauth/css/themes/darkly/darkly.min.css' %}">
|
|
||||||
{% endif %}
|
|
||||||
{% else %}
|
|
||||||
{% if debug %}
|
|
||||||
<!-- In template debug, loading less file instead of CSS -->
|
|
||||||
<link rel="stylesheet/less" href="{% static 'allianceauth/css/themes/flatly/flatly.less' %}">
|
|
||||||
<script src='https://cdnjs.cloudflare.com/ajax/libs/less.js/4.1.3/less.min.js' integrity='sha512-6gUGqd/zBCrEKbJqPI7iINc61jlOfH5A+SluY15IkNO1o4qP1DEYjQBewTB4l0U4ihXZdupg8Mb77VxqE+37dg==' crossorigin='anonymous' referrerpolicy="no-referrer"></script>
|
|
||||||
{% else %}
|
|
||||||
<link rel="stylesheet" href="{% static 'allianceauth/css/themes/flatly/flatly.min.css' %}">
|
|
||||||
{% endif %}
|
|
||||||
{% endif %}
|
|
||||||
<!-- End Bootstrap CSS -->
|
|
@ -1,4 +0,0 @@
|
|||||||
<!-- Start Bootstrap + jQuery js from cdnjs -->
|
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js" integrity="sha512-v2CJ7UaYy4JwqLDIrZUI/4hqeoQieOmAZNXBeQyjo21dadnwR+8ZaIJVT8EE2iyI61OV8e6M8PP2/4hpQINQ/g==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
|
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha512-oBTprMeNEKCnqfuqKd6sbvFzmFQtlXS3e0C/RGFV0hD6QzhHV+ODfaQbAlmY6/q0ubbwlAM/nCJjkrgA3waLzg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
|
|
||||||
<!-- End Bootstrap + jQuery js from cdnjs -->
|
|
@ -1,3 +0,0 @@
|
|||||||
<!-- Start Datatables-css from cdnjs -->
|
|
||||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/datatables.net-bs/1.13.4/dataTables.bootstrap.min.css" integrity="sha512-LNQbjsbyJFucRxb1nbmwGxOlsO3ttrO7sE9mHMsbVCXakH/sUYbvfGveW800lXcbR2GMgpL1dDaY1xBv1jFDZw==" crossorigin="anonymous" referrerpolicy="no-referrer">
|
|
||||||
<!-- End Datatables-css from cdnjs -->
|
|
@ -1,4 +0,0 @@
|
|||||||
<!-- Start Datatables-js from cdnjs -->
|
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/datatables.net/1.13.4/jquery.dataTables.min.js" integrity="sha512-8mDDicdS5IeRnHI+un7skH0RJoB2QMMJmORCHizlxul5jgf9tSWJwpE1eSl/2a9xFQYGOwXLr0Lh5SJPnL4IOw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
|
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/datatables.net-bs/1.13.4/dataTables.bootstrap.min.js" integrity="sha512-D14TIq/nBnZ4mTY+R1t/K0Mm49GvUZ6hgqmOMq0s3zbD2DlBqa8VOFNETlrk2gZcYHA6xhkIesrqmxE2eTNltw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
|
|
||||||
<!-- End Datatables-js from cdnjs -->
|
|
@ -22,7 +22,7 @@ Within your auth project exists two folders named `static` and `templates`. Thes
|
|||||||
|
|
||||||
You can add extra static or templates by putting files in these folders. Note that changes to static require running the `python manage.py collectstatic` command to copy to the web server directory.
|
You can add extra static or templates by putting files in these folders. Note that changes to static require running the `python manage.py collectstatic` command to copy to the web server directory.
|
||||||
|
|
||||||
It is possible to overload static and templates shipped with Django or Alliance Auth by including a file with the exact path of the one you wish to overload. For instance if you wish to add extra links to the menu bar by editing the template, you would make a copy of the `allianceauth/templates/allianceauth/base-bs5.html` (Bootstrap 5) `allianceauth/templates/allianceauth/base.html` (Legacy BS3) file to `myauth/templates/allianceauth/*.html` and edit it there. Notice the paths are identical after the `templates/` directory - this is critical for it to be recognized. Your custom template would be used instead of the one included with Alliance Auth when Django renders the web page. Similar idea for static: put CSS or images at an identical path after the `static/` directory and they will be copied to the web server directory instead of the ones included.
|
It is possible to overload static and templates shipped with Django or Alliance Auth by including a file with the exact path of the one you wish to overload. For instance if you wish to add extra links to the menu bar by editing the template, you would make a copy of the `allianceauth/templates/allianceauth/base-bs5.html` file to `myauth/templates/allianceauth/*.html` and edit it there. Notice the paths are identical after the `templates/` directory - this is critical for it to be recognized. Your custom template would be used instead of the one included with Alliance Auth when Django renders the web page. Similar idea for static: put CSS or images at an identical path after the `static/` directory and they will be copied to the web server directory instead of the ones included.
|
||||||
|
|
||||||
## Custom URLs and Views
|
## Custom URLs and Views
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user