Skip to content

Commit

Permalink
Ajoute le fait qu’un opérateur a traité la demande
Browse files Browse the repository at this point in the history
  • Loading branch information
niladic committed Aug 28, 2024
1 parent 10500e8 commit ddda159
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions app/views/application.scala
Original file line number Diff line number Diff line change
Expand Up @@ -346,12 +346,16 @@ object application {
application.creatorUserId === currentUser.id &&
!application.closed &&
(answer.creatorUserID =!= currentUser.id)
val showGenericApplicationProcessed =
answer.answerType === Answer.AnswerType.ApplicationProcessed &&
!showArchiveButton
val messageHasInfos =
// Note: always true for admins "** Message de 0 caractères **"
answer.message.nonEmpty ||
answer.declareApplicationHasIrrelevant ||
answer.userInfos.getOrElse(Map.empty).nonEmpty ||
showArchiveButton
showArchiveButton ||
showGenericApplicationProcessed
frag(
answerFilesLinks(
attachments,
Expand Down Expand Up @@ -475,7 +479,16 @@ object application {
br,
br
)
)
),
showGenericApplicationProcessed.some
.filter(identity)
.map(_ =>
div(
cls := "info-box",
answer.creatorUserName,
" a indiqué avoir traité la demande.",
)
),
)
)
)
Expand Down

0 comments on commit ddda159

Please sign in to comment.