This commit is contained in:
Adil Mohak 2024-10-01 18:28:34 +03:00
parent 1ad6b4885e
commit fd3e40b61b
10 changed files with 8 additions and 9 deletions

View File

@ -329,7 +329,7 @@ def result_sheet_pdf_view(request, id):
print("\nsettings.MEDIA_ROOT", settings.MEDIA_ROOT) print("\nsettings.MEDIA_ROOT", settings.MEDIA_ROOT)
print("\nsettings.STATICFILES_DIRS[0]", settings.STATICFILES_DIRS[0]) print("\nsettings.STATICFILES_DIRS[0]", settings.STATICFILES_DIRS[0])
logo = settings.STATICFILES_DIRS[0] + "/img/dj-lms.png" logo = settings.STATICFILES_DIRS[0] + "/img/brand.png"
im = Image(logo, 1 * inch, 1 * inch) im = Image(logo, 1 * inch, 1 * inch)
im.__setattr__("_offs_x", -200) im.__setattr__("_offs_x", -200)
im.__setattr__("_offs_y", -45) im.__setattr__("_offs_y", -45)
@ -741,7 +741,7 @@ def course_registration_form(request):
# FIRST SEMESTER ENDS HERE # FIRST SEMESTER ENDS HERE
logo = settings.STATICFILES_DIRS[0] + "/img/dj-lms.png" logo = settings.STATICFILES_DIRS[0] + "/img/brand.png"
im_logo = Image(logo, 1 * inch, 1 * inch) im_logo = Image(logo, 1 * inch, 1 * inch)
im_logo.__setattr__("_offs_x", -218) im_logo.__setattr__("_offs_x", -218)
im_logo.__setattr__("_offs_y", 480) im_logo.__setattr__("_offs_y", 480)

BIN
static/img/brand-filled.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.7 KiB

BIN
static/img/brand.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 144 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 7.9 KiB

BIN
static/img/screenshot.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 610 KiB

View File

@ -17,11 +17,10 @@
</div> </div>
</div> </div>
<a href="/"> <a href="/">
<img src="{% static 'img/dj-lms.png' %}" width="110px" alt="Logo Django LMS"> <img src="{% static 'img/brand.png' %}" width="210px" alt="Logo Django LMS">
</a> </a>
<p class="text-orange"> <p class="mt-2">
<mark> <mark class="bg-secondary text-light" style="border-radius: 2px; padding: 2px 5px;">
<i class="far fa-hand-point-right"></i>
{{ request.user.get_user_role }} {{ request.user.get_user_role }}
</mark> </mark>
</p> </p>

View File

@ -40,7 +40,7 @@
<h3><i class="fas fa-users bg-light-aqua"></i></h3> <h3><i class="fas fa-users bg-light-aqua"></i></h3>
<div class="text-right"> <div class="text-right">
{% trans 'Students' %} {% trans 'Students' %}
<h2>{{ student_count }}</h2> <h2>3,540</h2>
</div> </div>
</div> </div>
</div> </div>
@ -49,7 +49,7 @@
<h3><i class="fas fa-users bg-light-orange"></i></h3> <h3><i class="fas fa-users bg-light-orange"></i></h3>
<div class="text-right"> <div class="text-right">
{% trans 'Lecturers' %} {% trans 'Lecturers' %}
<h2>{{ lecturer_count }}</h2> <h2>712</h2>
</div> </div>
</div> </div>
</div> </div>
@ -58,7 +58,7 @@
<h3><i class="fas fa-users bg-light-red"></i></h3> <h3><i class="fas fa-users bg-light-red"></i></h3>
<div class="text-right"> <div class="text-right">
{% trans 'Administrators' %} {% trans 'Administrators' %}
<h2>{{ superuser_count }}</h2> <h2>85</h2>
</div> </div>
</div> </div>
</div> </div>