From 6b1db59a12064cbc49f748aad84aaa0ca694524d Mon Sep 17 00:00:00 2001 From: goldpbear Date: Wed, 28 Sep 2016 11:42:57 -0700 Subject: [PATCH] Render place detail content with isHTML flag set as HTML To accommodate raw landmark HTML in shareabouts place models, render content with the isHTML flag set as raw HTML in the place detail template. Assume raw HTML content is stored under the 'description' field, and that this field is of type 'textarea', as set in the dynamic form section of the config. Addresses: #407 --- .../raingardens/jstemplates/place-detail.html | 37 ++++++++++++------- 1 file changed, 23 insertions(+), 14 deletions(-) diff --git a/src/flavors/raingardens/jstemplates/place-detail.html b/src/flavors/raingardens/jstemplates/place-detail.html index c0d498cb4a..57fca4f406 100644 --- a/src/flavors/raingardens/jstemplates/place-detail.html +++ b/src/flavors/raingardens/jstemplates/place-detail.html @@ -29,30 +29,39 @@

{{^}} {{/if}} - {{#if submitter.name }} - {{ submitter.name }} - {{^}} - {{#if submitter_name }} - {{ submitter_name }} +

+ + {{#_}} + {{#if submitter.avatar_url }} + {{^}} - {{ anonymous_name }} + {{/if}} - {{/if}} - {{ action_text }} this {{ place_type_label location_type}} + {{#if submitter.name }} + {{ submitter.name }} + {{^}} + {{#if submitter_name }} + {{ submitter_name }} + {{^}} + {{ anonymous_name }} + {{/if}} + {{/if}} + {{ action_text }} this {{ place_type_label location_type}} - {{#if region}} - in {{ region }} - {{/if}}{{/_}} + {{#if region}} + in {{ region }} + {{/if}}{{/_}} - + - {{ survey_count }} {{ survey_label_by_count }} + {{ survey_count }} {{ survey_label_by_count }} {{^if survey_config}} View On Map {{/if}} - + + {{/unless}}