Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
ksavilaNIH committed Feb 12, 2024
2 parents f4b5c39 + c0e9e75 commit 9c04ad4
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# [3.2.0](https://github.com/zendesk/copenhagen_theme/compare/v3.1.6...v3.2.0) (2024-02-08)


### Features

* add satisfaction response to request details ([48a2aa0](https://github.com/zendesk/copenhagen_theme/commit/48a2aa0eef4d16a6699bb8027c640a5334482117))

## [3.1.6](https://github.com/zendesk/copenhagen_theme/compare/v3.1.5...v3.1.6) (2023-10-05)


Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Copenhagen (ARPA-H customized)",
"author": "Zendesk",
"version": "3.1.4",
"version": "3.2.0",
"api_version": 3,
"default_locale": "en-us",
"settings": [
Expand Down
36 changes: 36 additions & 0 deletions templates/request_page.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,42 @@
</dl>
{{/if}}

{{#with satisfaction_response}}
{{#with rating}}
<dl class="request-details">
<dt>{{t 'rating'}}</dt>
<dd>
<div>
{{#is scale_type 'numeric'}}
{{t 'numerical_rating' value=value max_value=max_value}}
{{else}}
{{scale_value}}
{{/is}}
</div>

{{#link 'survey_response' id=../id}}
{{#if ../editable}}
{{t 'edit_feedback'}}
{{else}}
{{t 'view_feedback'}}
{{/if}}
{{/link}}
</dd>
</dl>
{{else}}
{{#if editable}}
<dl class="request-details">
<dt>{{t 'rating'}}</dt>
<dd>
{{#link 'survey_response' id=id}}
{{t 'add_feedback'}}
{{/link}}
</dd>
</dl>
{{/if}}
{{/with}}
{{/with}}

<dl class="request-details">
<dt>{{t 'requester'}}</dt>
<dd>{{request.requester.name}}</dd>
Expand Down

0 comments on commit 9c04ad4

Please sign in to comment.