crmMailing/review.html - Show preview for text (if text is derived from html)
authorTim Otten <totten@civicrm.org>
Sat, 28 Feb 2015 01:48:34 +0000 (18:48 -0700)
committerTim Otten <totten@civicrm.org>
Tue, 3 Mar 2015 02:45:36 +0000 (18:45 -0800)
partials/crmMailing/review.html

index 662c2a1d14daf68894702332f3cf65b1a0fc59fb..13d22116b2f5e84514b2b2c3e746bd608102b85b 100644 (file)
@@ -23,7 +23,7 @@ Required vars: mailing
       </div>
       <div crm-ui-field crm-title="ts('Content')">
         <span ng-show="mailing.body_html"><a crm-icon="newwin" class="crm-hover-button action-item" ng-click="previewMailing(mailing, 'html')">{{ts('HTML')}}</a></span>
-        <span ng-show="mailing.body_text"><a crm-icon="newwin" class="crm-hover-button action-item" ng-click="previewMailing(mailing, 'text')">{{ts('Plain Text')}}</a></span>
+        <span ng-show="mailing.body_html || mailing.body_text"><a crm-icon="newwin" class="crm-hover-button action-item" ng-click="previewMailing(mailing, 'text')">{{ts('Plain Text')}}</a></span>
         <!-- TODO: attachments -->
       </div>
       <div crm-ui-field crm-title="ts('Attachments')" ng-show="attachments.files.length > 0 || attachments.uploader.queue.length > 0">