Free and open source ticket system written in python
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

📦 NEW: Add profile picture support

+24 -6
+2 -1
.gitignore
··· 155 155 156 156 157 157 static/admin 158 - static/colorfield 158 + static/colorfield 159 + media/profile_pics
media/.gitkeep

This is a binary file and will not be displayed.

+3
paw/settings.py
··· 138 138 path.join(BASE_DIR, 'static/'), 139 139 ) 140 140 141 + MEDIA_URL = '/media/' 142 + MEDIA_ROOT = BASE_DIR / 'media' 143 + 141 144 142 145 # Default primary key field type 143 146 # https://docs.djangoproject.com/en/5.0/ref/settings/#default-auto-field
+5 -1
paw/templates/dashboard_base.html
··· 26 26 <div class="flex items-center py-2 lg:p-2 justify-center lg:justify-start"> 27 27 <div class="avatar placeholder"> 28 28 <div class="bg-base-300 text-base-content rounded-full w-10"> 29 - <span class="text-xl">{{ request.user.username|slice:":2" }}</span> 29 + {% if request.user.profile_picture %} 30 + <img src="{{ request.user.profile_picture.url }}" /> 31 + {% else %} 32 + <span class="text-xl">{{ request.user.username|slice:":2" }}</span> 33 + {% endif %} 30 34 </div> 31 35 </div> 32 36 <div class="hidden ml-2 text-neutral-content lg:flex flex-col p-1">
+10 -4
paw/templates/partials/assigned_to.html
··· 1 1 {% block assigned_to %} 2 2 {% load i18n %} 3 3 {% if assigned_to %} 4 - <div class="avatar placeholder"> 5 - <div class="bg-base-300 text-base-content rounded-full w-6 mr-1"> 6 - <span class="text-xl">{{ assigned_to.username|slice:":2" }}</span> 4 + <div class="flex items-center justify-start"> 5 + <div class="avatar placeholder"> 6 + <div class="bg-base-300 text-base-content rounded-full w-6 mr-1"> 7 + {% if assigned_to.profile_picture %} 8 + <img src="{{ assigned_to.profile_picture.url }}" /> 9 + {% else %} 10 + <span>{{ assigned_to.username|slice:":2" }}</span> 11 + {% endif %} 12 + </div> 7 13 </div> 14 + {{ assigned_to.username }} 8 15 </div> 9 - {{ assigned_to.username }} 10 16 {% else %} 11 17 <span class="italic">{% trans 'Unassigned' %}</span> 12 18 {% endif %}
+4
paw/urls.py
··· 26 26 path("", include("core.urls")), 27 27 path("", include("ticketing.urls")), 28 28 ] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) 29 + 30 + if settings.DEBUG: 31 + urlpatterns += static(settings.MEDIA_URL, 32 + document_root=settings.MEDIA_ROOT)