Skip to content

Commit

Permalink
Final build for 0.30.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Clarke committed Aug 10, 2023
2 parents 8933f8c + a326dfa commit 5b94d01
Show file tree
Hide file tree
Showing 20 changed files with 26 additions and 12 deletions.
2 changes: 1 addition & 1 deletion NearBeach/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
name = "NearBeach"
__version__ = "0.30.3"
__version__ = "0.30.4"
1 change: 1 addition & 0 deletions NearBeach/static/NearBeach/1862.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added NearBeach/static/NearBeach/1862.min.js.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion NearBeach/static/NearBeach/NearBeach.min.js

Large diffs are not rendered by default.

Binary file modified NearBeach/static/NearBeach/NearBeach.min.js.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion NearBeach/static/NearBeach/change-task-modules.min.js

Large diffs are not rendered by default.

Binary file modified NearBeach/static/NearBeach/change-task-modules.min.js.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion NearBeach/static/NearBeach/kanban-group-permissions.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified NearBeach/static/NearBeach/kanban-group-permissions.min.js.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion NearBeach/static/NearBeach/kanban-information.min.js

Large diffs are not rendered by default.

Binary file modified NearBeach/static/NearBeach/kanban-information.min.js.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion NearBeach/static/NearBeach/parent-modules.min.js

Large diffs are not rendered by default.

Binary file modified NearBeach/static/NearBeach/parent-modules.min.js.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion NearBeach/static/NearBeach/rfc-Information.min.js

Large diffs are not rendered by default.

Binary file modified NearBeach/static/NearBeach/rfc-Information.min.js.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion NearBeach/static/NearBeach/rfc-modules.min.js

Large diffs are not rendered by default.

Binary file modified NearBeach/static/NearBeach/rfc-modules.min.js.gz
Binary file not shown.
9 changes: 7 additions & 2 deletions NearBeach/views/request_for_change_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
RequestForChangeGroupApproval,
ListOfRFCStatus,
)
from django.db.models import Q
from django.db.models import Q, F
from django.http import HttpResponse, HttpResponseBadRequest, HttpResponseRedirect, JsonResponse
from django.urls import reverse
from django.template import loader
Expand Down Expand Up @@ -67,12 +67,17 @@ def get_rfc_context(rfc_id):
"""
# Get data
rfc_results = RequestForChange.objects.get(rfc_id=rfc_id)
rfc_change_lead = User.objects.filter(id=rfc_results.rfc_lead.id).values(
rfc_change_lead = User.objects.filter(
id=rfc_results.rfc_lead.id
).annotate(
profile_picture=F('userprofilepicture__document_id__document_key')
).values(
"id",
"email",
"first_name",
"last_name",
"username",
"profile_picture",
)
user_list = User.objects.filter(
is_active=True,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nearbeach",
"version": "0.30.3",
"version": "0.30.4",
"description": "NearBeach - an Open Source project management system built with Django web framework",
"main": "/src/js/app.js",
"directories": {
Expand Down
10 changes: 9 additions & 1 deletion src/js/components/request_for_change/RfcInformation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
<tr>
<td>
<img
v-bind:src="`${staticUrl}/NearBeach/images/placeholder/people_tax.svg`"
v-bind:src="getProfilePicture(rfcChangeLead[0].profile_picture)"
alt="default profile"
class="default-user-profile"
/>
Expand Down Expand Up @@ -431,6 +431,14 @@
//Send data
this.sendUpdate(data_to_send);
},
getProfilePicture(profile_picture) {
//If customer profile is blank - return default picture
if (profile_picture === "" || profile_picture === null || profile_picture === undefined) {
return `${this.staticUrl}/NearBeach/images/placeholder/product_tour.svg`;
}
return `${this.rootUrl}private/${profile_picture}`;
},
getStatus() {
return this.rfcStatusDict[this.rfcResults[0].fields.rfc_status];
},
Expand Down

0 comments on commit 5b94d01

Please sign in to comment.