From 946dba0138b3ec96915d31f19363307b86d394b2 Mon Sep 17 00:00:00 2001 From: Gerald Iakobinyi-Pich Date: Wed, 8 Jun 2022 11:26:27 +0000 Subject: [PATCH] Fixes for bounties: - layout for contact details (avoid overlapping, wrap the line with contact details) - editing bounty that was not reserved was not working --- app/assets/v2/js/pages/change_bounty.js | 4 ++-- app/dashboard/templates/bounty/details2.html | 12 ++++++------ .../templates/bounty/new_bounty_step_5.html | 10 +++++----- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/app/assets/v2/js/pages/change_bounty.js b/app/assets/v2/js/pages/change_bounty.js index b7a85a12d8d..0f3141f33e0 100644 --- a/app/assets/v2/js/pages/change_bounty.js +++ b/app/assets/v2/js/pages/change_bounty.js @@ -1235,10 +1235,10 @@ if (document.getElementById('gc-hackathon-new-bounty')) { project_length: bounty.project_length, experience_level: bounty.experience_level, never_expires: bounty.never_expires, - reserved_for_user: { + reserved_for_user: bounty.bounty_reserved_for_user ? { text: bounty.bounty_reserved_for_user.handle, avatar_url: bounty.bounty_reserved_for_user.avatar_url - }, + } : { text: '', avatar_url: ''}, richDescriptionContent: bounty.custom_issue_description ? JSON.parse(bounty.custom_issue_description) : null, richDescriptionText: bounty.custom_issue_description ? bounty.custom_issue_description : '' }, diff --git a/app/dashboard/templates/bounty/details2.html b/app/dashboard/templates/bounty/details2.html index 3434e7c21e6..b17a16cf3d5 100644 --- a/app/dashboard/templates/bounty/details2.html +++ b/app/dashboard/templates/bounty/details2.html @@ -202,14 +202,14 @@

[[ bounty.title ] -
+
{% trans "Contacts" %} -
-
- [[contact.value]] - [[contact.value]] - [[contact.value]] +
+
+ [[contact.value]] + [[contact.value]] + [[contact.value]]
diff --git a/app/dashboard/templates/bounty/new_bounty_step_5.html b/app/dashboard/templates/bounty/new_bounty_step_5.html index a216349322c..e2658c896dc 100644 --- a/app/dashboard/templates/bounty/new_bounty_step_5.html +++ b/app/dashboard/templates/bounty/new_bounty_step_5.html @@ -140,11 +140,11 @@

[[ form.title ]]<
{% trans "Contacts" %} -
-
- [[contact.value]] - [[contact.value]] - [[contact.value]] +
+
+ [[contact.value]] + [[contact.value]] + [[contact.value]]