Improved visuals of admin page login
This commit is contained in:
@@ -10,6 +10,6 @@ urlpatterns = [
|
|||||||
path("", lambda r: redirect("/user/")), # la root porta gli utenti nella pagina giusta
|
path("", lambda r: redirect("/user/")), # la root porta gli utenti nella pagina giusta
|
||||||
]
|
]
|
||||||
|
|
||||||
admin.site.site_header = "CantorAir Flight Scheduler"
|
admin.site.site_header = "Flight Scheduler 🛫"
|
||||||
admin.site.site_title = "CantorAir Flight Scheduler"
|
admin.site.site_title = "Flight Scheduler 🛫"
|
||||||
admin.site.index_title = "Welcome to CantorAir Flight Scheduler Portal"
|
admin.site.index_title = "Welcome to CantorAir Flight Scheduler Portal"
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ WORKDIR /app
|
|||||||
# Copy application custom static files
|
# Copy application custom static files
|
||||||
RUN mkdir -p static
|
RUN mkdir -p static
|
||||||
COPY ./static/cantorair.jpg ./static
|
COPY ./static/cantorair.jpg ./static
|
||||||
|
COPY ./static/cantorair_blue.jpg ./static
|
||||||
|
|
||||||
# Copy application custom templates for admin page
|
# Copy application custom templates for admin page
|
||||||
RUN mkdir -p /templates/admin
|
RUN mkdir -p /templates/admin
|
||||||
|
|||||||
@@ -104,3 +104,4 @@ class HourBuildingLeg(models.Model):
|
|||||||
return "Refuelling Stop"
|
return "Refuelling Stop"
|
||||||
else:
|
else:
|
||||||
return f"Flight Leg: {self.departure} -> {self.destination}"
|
return f"Flight Leg: {self.departure} -> {self.destination}"
|
||||||
|
|
||||||
BIN
cntmanage/static/cantorair_blue.jpg
Normal file
BIN
cntmanage/static/cantorair_blue.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 8.8 KiB |
@@ -7,12 +7,19 @@
|
|||||||
{% block branding %}
|
{% block branding %}
|
||||||
|
|
||||||
<h1 id="site-name">
|
<h1 id="site-name">
|
||||||
<a href="{% url 'admin:index' %}">
|
<a href="{% url 'admin:index' %}" style="color: #0b1728;">
|
||||||
<img src="{% static 'cantorair.jpg' %}" height="60px" />
|
<img src="{% static 'cantorair_blue.jpg' %}"
|
||||||
|
height="60px"
|
||||||
|
style="margin-right: 20px;"/>
|
||||||
</a>
|
</a>
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<div id="site-name"><a href="{% url 'admin:index' %}">{{ site_header|default:_('Django administration') }}</a></div>
|
<div id="site-name" style="align-self: center; text-align: center;">
|
||||||
|
<a href="{% url 'admin:index' %}" style="color: #0b1728;">
|
||||||
|
{{ site_header | default:_('Django administration') }}
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
{% if user.is_anonymous %}
|
{% if user.is_anonymous %}
|
||||||
{% include "admin/color_theme_toggle.html" %}
|
{% include "admin/color_theme_toggle.html" %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
Reference in New Issue
Block a user