Skip to content

Commit

Permalink
adding more |raw
Browse files Browse the repository at this point in the history
Refs #4019
  • Loading branch information
mattab committed Jun 25, 2013
1 parent 7bbf305 commit 5aa8081
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions plugins/Annotations/templates/_annotation.twig
Expand Up @@ -19,14 +19,14 @@
<td class="annotation-value">
<div class="annotation-view-mode">
<span {% if annotation.canEditOrDelete %}title="{{ 'Annotations_ClickToEdit'|translate }}"
class="annotation-enter-edit-mode"{% endif %}>{{ annotation.note }}</span>
class="annotation-enter-edit-mode"{% endif %}>{{ annotation.note|raw }}</span>
{% if annotation.canEditOrDelete %}
<a href="#" class="edit-annotation annotation-enter-edit-mode" title="{{ 'Annotations_ClickToEdit'|translate }}">{{ 'General_Edit'|translate }}...</a>
{% endif %}
</div>
{% if annotation.canEditOrDelete %}
<div class="annotation-edit-mode" style="display:none">
<input class="annotation-edit" type="text" value="{{ annotation.note }}"/>
<input class="annotation-edit" type="text" value="{{ annotation.note|e('html') }}"/>
<br/>
<input class="annotation-save submit" type="button" value="{{ 'General_Save'|translate }}"/>
<input class="annotation-cancel submit" type="button" value="{{ 'General_Cancel'|translate }}"/>
Expand Down
2 changes: 1 addition & 1 deletion plugins/CoreHome/templates/_dataTable.twig
@@ -1,6 +1,6 @@
<div class="dataTable" data-table-type="dataTable" data-report="{{ properties.uniqueId }}" data-params="{{ javascriptVariablesToSet|json_encode }}">
<div class="reportDocumentation">
{% if reportDocumentation is not empty %}<p>{{ reportDocumentation }}</p>{% endif %}
{% if reportDocumentation is not empty %}<p>{{ reportDocumentation|raw }}</p>{% endif %}
{% if properties.metadata.archived_date is defined %}<span class='helpDate'>{{ properties.metadata.archived_date }}</span>{% endif %}
</div>
{% set class %}
Expand Down
2 changes: 1 addition & 1 deletion plugins/CoreHome/templates/_dataTableCloud.twig
@@ -1,6 +1,6 @@
<div class="dataTable" data-report="{{ properties.uniqueId }}" data-params="{{ javascriptVariablesToSet|json_encode }}">
{% if reportDocumentation is not empty and javascriptVariablesToSet.viewDataTable != 'tableGoals' %}
<div class="reportDocumentation"><p>{{ reportDocumentation }}</p></div>
<div class="reportDocumentation"><p>{{ reportDocumentation|raw }}</p></div>
{% endif %}
<div class="tagCloud">
{% if cloudValues|length == 0 %}
Expand Down
2 changes: 1 addition & 1 deletion plugins/CoreHome/templates/_dataTableGraph.twig
@@ -1,7 +1,7 @@
<div class="dataTable" data-report="{{ properties.uniqueId }}" data-params="{{ javascriptVariablesToSet|json_encode }}">

<div class="reportDocumentation">
{% if reportDocumentation is not empty %}<p>{{ reportDocumentation }}</p>{% endif %}
{% if reportDocumentation is not empty %}<p>{{ reportDocumentation|raw }}</p>{% endif %}
{% if properties.metadata.archived_date is defined %}<p>{{ properties.metadata.archived_date }}</p>{% endif %}
</div>

Expand Down
2 changes: 1 addition & 1 deletion plugins/CoreHome/templates/_siteSelect.twig
Expand Up @@ -29,7 +29,7 @@
<div class="custom_select">

<a href="#" onclick="return false" class="custom_select_main_link" siteid="{% if idSite is defined %}{{ idSite }}{% else %}{{ sites[0].idsite }}{% endif %}">
{% if siteName is defined %}{{ siteName }}{% else %}{{ sites[0].name }}{% endif %}
{% if siteName is defined %}{{ siteName|raw }}{% else %}{{ sites[0].name|raw }}{% endif %}
</a>

<div class="custom_select_block">
Expand Down
2 changes: 1 addition & 1 deletion plugins/CoreHome/templates/getRowEvolutionPopover.twig
Expand Up @@ -4,7 +4,7 @@
{{ graph|raw }}
</div>
<div class="metrics-container">
<h2>{{ availableMetricsText }}</h2>
<h2>{{ availableMetricsText|raw }}</h2>

<div class="rowevolution-documentation">
{{ 'RowEvolution_Documentation'|translate }}
Expand Down
6 changes: 3 additions & 3 deletions plugins/DevicesDetection/templates/index.twig
@@ -1,15 +1,15 @@
<div id='leftcolumn'>
<h2>{{ "DevicesDetection_DeviceType"|translate }}</h2>
{{ deviceTypes }}
{{ deviceTypes | raw}}
<h2>{{ "DevicesDetection_DeviceBrand"|translate }}</h2>
{{ deviceBrands }}
{{ deviceBrands | raw }}
<h2>{{ "DevicesDetection_DeviceModel"|translate }}</h2>
{{ deviceModels | raw }}
</div>

<div id='rightcolumn'>
<h2>{{ "DeviceDetection_OperatingSystemFamilies"|translate }}</h2>
{{ osReport }}
{{ osReport | raw}}
<h2>{{ "DevicesDetection_BrowsersFamily"|translate }}</h2>
{{ browserReport | raw }}
</div>
2 changes: 1 addition & 1 deletion plugins/Goals/templates/_titleAndEvolutionGraph.twig
@@ -1,7 +1,7 @@
<a name="evolutionGraph" graphId="{{ nameGraphEvolution }}"></a>

{% if displayFullReport %}
<h2>{% if goalName is defined %}{{ 'Goals_GoalX'|translate(goalName) }}{% else %}{{ 'Goals_GoalsOverview'|translate }}{% endif %}</h2>
<h2>{% if goalName is defined %}{{ 'Goals_GoalX'|translate(goalName)|raw }}{% else %}{{ 'Goals_GoalsOverview'|translate }}{% endif %}</h2>
{% endif %}
{{ graphEvolution|raw }}

Expand Down
14 changes: 7 additions & 7 deletions plugins/Referers/templates/index.twig
Expand Up @@ -22,7 +22,7 @@
<strong>{{ visitorsFromSearchEnginesPercent }}%</strong> of visits
{% endif %}
{% if visitorsFromSearchEnginesEvolution is not empty %}
{{ visitorsFromSearchEnginesEvolution }}
{{ visitorsFromSearchEnginesEvolution|raw }}
{% endif %}
</div>
</div>
Expand All @@ -33,7 +33,7 @@
<strong>{{ visitorsFromWebsitesPercent }}%</strong> of visits
{% endif %}
{% if visitorsFromWebsitesEvolution is not empty %}
{{ visitorsFromWebsitesEvolution }}
{{ visitorsFromWebsitesEvolution|raw }}
{% endif %}
</div>
<div class="sparkline">{{ sparkline(urlSparklineCampaigns) }}
Expand All @@ -42,7 +42,7 @@
<strong>{{ visitorsFromCampaignsPercent }}%</strong> of visits
{% endif %}
{% if visitorsFromCampaignsEvolution is not empty %}
{{ visitorsFromCampaignsEvolution }}
{{ visitorsFromCampaignsEvolution|raw }}
{% endif %}
</div>
</div>
Expand All @@ -64,13 +64,13 @@
<div class="sparkline">{{ sparkline(urlSparklineDistinctSearchEngines) }}
<strong>{{ numberDistinctSearchEngines }}</strong> {{ 'Referers_DistinctSearchEngines'|translate }}
{% if numberDistinctSearchEnginesEvolution is not empty %}
{{ numberDistinctSearchEnginesEvolution }}
{{ numberDistinctSearchEnginesEvolution|raw }}
{% endif %}
</div>
<div class="sparkline">{{ sparkline(urlSparklineDistinctKeywords) }}
<strong>{{ numberDistinctKeywords }}</strong> {{ 'Referers_DistinctKeywords'|translate }}
{% if numberDistinctKeywordsEvolution is not empty %}
{{ numberDistinctKeywordsEvolution }}
{{ numberDistinctKeywordsEvolution|raw }}
{% endif %}
</div>
</td>
Expand All @@ -79,13 +79,13 @@
<strong>{{ numberDistinctWebsites }}</strong> {{ 'Referers_DistinctWebsites'|translate }}
{{ 'Referers_UsingNDistinctUrls'|translate("<strong>"~numberDistinctWebsitesUrls~"</strong>") }}
{% if numberDistinctWebsitesEvolution is not empty %}
{{ numberDistinctWebsitesEvolution }}
{{ numberDistinctWebsitesEvolution|raw }}
{% endif %}
</div>
<div class="sparkline">{{ sparkline(urlSparklineDistinctCampaigns) }}
<strong>{{ numberDistinctCampaigns }}</strong> {{ 'Referers_DistinctCampaigns'|translate }}
{% if numberDistinctCampaignsEvolution is not empty %}
{{ numberDistinctCampaignsEvolution }}
{{ numberDistinctCampaignsEvolution|raw }}
{% endif %}
</div>
</td>
Expand Down

0 comments on commit 5aa8081

Please sign in to comment.