diff options
author | Stefan Giehl <stefan@matomo.org> | 2019-11-08 05:33:00 +0300 |
---|---|---|
committer | diosmosis <diosmosis@users.noreply.github.com> | 2019-11-08 05:32:59 +0300 |
commit | ee4c3087779d43cd52a4fd8f31ed9e61489b8e79 (patch) | |
tree | 83ed3bad075e51a0accd4327a501ce8cd9886370 /plugins/CoreHome/templates | |
parent | d5c9010a9a3a2db3e3564f8e1b92e81215e275c5 (diff) |
Adds links to online guides in reports help (#15030)
* Adds links to online guides in reports help
for reports where the new onlineGuideUrl property is defined
* Adds more online guide links
* updates expected test files
* include online guide url in report glossary API
* Adjust link
* Add punctuation to translation.
Diffstat (limited to 'plugins/CoreHome/templates')
-rw-r--r-- | plugins/CoreHome/templates/_dataTable.twig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/CoreHome/templates/_dataTable.twig b/plugins/CoreHome/templates/_dataTable.twig index e0b0327b5d..b13fdaea2c 100644 --- a/plugins/CoreHome/templates/_dataTable.twig +++ b/plugins/CoreHome/templates/_dataTable.twig @@ -42,7 +42,8 @@ <div class="reportDocumentation"> {% if properties.documentation|default is not empty %}<p ng-bind-html="{{ properties.documentation|json_encode|e('html_attr') }}"></p>{% endif %} - {% if reportLastUpdatedMessage is defined and reportLastUpdatedMessage %}<span class='helpDate'>{{ reportLastUpdatedMessage|raw }}</span>{% endif %} + {% if properties.onlineGuideUrl|default is not empty %}<a href="{{ properties.onlineGuideUrl|safelink|e('html_attr') }}" target="_blank" rel="noreferrer noopener" class="onlineGuide">{{ 'CoreHome_ReadMoreOnlineGuide'|translate }}</a>{% endif %} + {% if reportLastUpdatedMessage is defined and reportLastUpdatedMessage %}<span class="helpDate">{{ reportLastUpdatedMessage|raw }}</span>{% endif %} </div> <div class="dataTableWrapper"> |