diff options
Diffstat (limited to 'plugins/Goals/templates/addNewGoal.twig')
-rw-r--r-- | plugins/Goals/templates/addNewGoal.twig | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/plugins/Goals/templates/addNewGoal.twig b/plugins/Goals/templates/addNewGoal.twig index 844892ecbc..9b7819d7f9 100644 --- a/plugins/Goals/templates/addNewGoal.twig +++ b/plugins/Goals/templates/addNewGoal.twig @@ -1,20 +1,21 @@ {% if userCanEditGoals %} - <p>{{ 'Goals_NewGoalIntro'|translate }}</p> - <p>{{ 'Goals_LearnMoreAboutGoalTrackingDocumentation'|translate("<a href='?module=Proxy&action=redirect&url=http://piwik.org/docs/tracking-goals-web-analytics/' target='_blank'>","</a>")|raw }} - {{ 'Goals_ManageGoalsOrCreateANewGoal'|translate("<a href='#module=Goals&action=editGoals'>","</a>")|raw }} - </p> + {% set addNewGoalIntro %} + <p>{{ 'Goals_NewGoalIntro'|translate }}</p> + <p>{{ 'Goals_LearnMoreAboutGoalTrackingDocumentation'|translate("<a href='?module=Proxy&action=redirect&url=http://piwik.org/docs/tracking-goals-web-analytics/' target='_blank'>","</a>")|raw }}</p> + {% endset %} {% include "@Goals/_addEditGoal.twig" %} <br/><br/> {% else %} - <h2>{{ 'Goals_AddNewGoal'|translate }}</h2> - <p> - {{ 'Goals_NoGoalsNeedAccess'|translate|raw }} - </p> - <p> - {{ 'Goals_LearnMoreAboutGoalTrackingDocumentation'|translate("<a href='?module=Proxy&action=redirect&url=http://piwik.org/docs/tracking-goals-web-analytics/' target='_blank'>","</a>")|raw }} - </p> + <div piwik-content-block content-title="{{ 'Goals_AddNewGoal'|translate|e('html_attr') }}"> + <p> + {{ 'Goals_NoGoalsNeedAccess'|translate|raw }} + </p> + <p> + {{ 'Goals_LearnMoreAboutGoalTrackingDocumentation'|translate("<a href='?module=Proxy&action=redirect&url=http://piwik.org/docs/tracking-goals-web-analytics/' target='_blank'>","</a>")|raw }} + </p> + </div> {% endif %} |