Commit f18213fd8927e84cbf3537722e6a7f1155939632
1 parent
880e8a55
Exists in
master
and in
4 other branches
New PDC_SITE_CLASS for site icon styling
Showing
4 changed files
with
14 additions
and
2 deletions
Show diff stats
app/auth/templates/login.html
... | ... | @@ -2,6 +2,7 @@ |
2 | 2 | <html lang="fr"> |
3 | 3 | <head> |
4 | 4 | {% include 'heads.html' %} |
5 | + <link href="{{ url_for('static', filename='css/style.css') }}" rel="stylesheet" type="text/css"/> | |
5 | 6 | <link href="{{ url_for('auth.static', filename='signin.css') }}" rel="stylesheet" type="text/css"/> |
6 | 7 | </head> |
7 | 8 | <body class="text-center"> |
... | ... | @@ -9,7 +10,7 @@ |
9 | 10 | {% include 'flash-messages.html' %} |
10 | 11 | |
11 | 12 | <a href="{{url_for('main.index')}}"> |
12 | - <img class="mb-4" height="72" src="{{ url_for('static', filename='img/pdc.png') }}" width="72"> | |
13 | + <img class="mb-4 {{config.PDC_SITE_CLASS}}" height="72" src="{{ url_for('static', filename='img/pdc.png') }}" width="72"> | |
13 | 14 | </a> |
14 | 15 | <h1 class="h3 font-weight-normal mb-3">Connectez vous</h1> |
15 | 16 | <label class="sr-only" for="login">Email Adress</label> | ... | ... |
app/static/css/style.css
app/templates/base_page.html
... | ... | @@ -9,7 +9,7 @@ |
9 | 9 | <body> |
10 | 10 | <nav class="navbar navbar-dark sticky-top bg-dark navbar-expand-lg p-1"> |
11 | 11 | <a class="navbar-brand col-sm-3 col-md-2 " href="{{url_for('main.index')}}"> |
12 | - <img class="m-0 mr-1" height="30" src="{{ url_for('static', filename='img/pdc-ico.png') }}" width="30"/> | |
12 | + <img class="m-0 mr-1 {{config.PDC_SITE_CLASS}}" src="{{ url_for('static', filename='img/pdc-ico.png') }}" height="30" width="30"/> | |
13 | 13 | {{config.PDC_APP_NAME}} - {{config.PDC_SITE_NAME}}</a> |
14 | 14 | <ul class="navbar-nav ml-auto"> |
15 | 15 | {% if not current_user.is_anonymous %} | ... | ... |
resources/pdc_config.py
... | ... | @@ -12,11 +12,18 @@ class Config(object): |
12 | 12 | SECRET_KEY = 'dev' |
13 | 13 | SQLALCHEMY_TRACK_MODIFICATIONS = False |
14 | 14 | |
15 | + # Please change the following to fit you own site parameters | |
16 | + # | |
15 | 17 | PDC_APP_NAME = 'Plan de Charge' |
16 | 18 | PDC_SITE_NAME = 'NO_SITE' # choose among IRAP, PUBLIC, ... |
19 | + PDC_SITE_CLASS = 'public-icon' # choose among admin-icon, public-icon | |
17 | 20 | PDC_LOGS_DIR = os.path.join(root_dir, 'logs') |
18 | 21 | PDC_LOGS_FILENAME = os.path.join(PDC_LOGS_DIR, 'pdc.logs') |
19 | 22 | |
23 | + # | |
24 | + # No need to Edit below | |
25 | + # | |
26 | + | |
20 | 27 | # You can force logging to stdout in production environment |
21 | 28 | # (make sure your httpd/wsgi server can redirect to log files) |
22 | 29 | LOG_TO_STDOUT = os.environ.get('LOG_TO_STDOUT') | ... | ... |