diff options
author | vipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-11-01 17:57:25 +0300 |
---|---|---|
committer | vipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-11-01 17:57:25 +0300 |
commit | 5e9f51a930d1084e93e0f15f7466c0e9e664e437 (patch) | |
tree | 862e1d58e408546d48816f2b7fe2efbb2a44c5fd /plugins/SitesManager | |
parent | 8ea4a58e993e25827ebb9b16771cda5cc5226570 (diff) |
fixes #959 - show website name in UI when displaying tracking code
Diffstat (limited to 'plugins/SitesManager')
-rw-r--r-- | plugins/SitesManager/Controller.php | 1 | ||||
-rw-r--r-- | plugins/SitesManager/templates/DisplayJavascriptCode.tpl | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/plugins/SitesManager/Controller.php b/plugins/SitesManager/Controller.php index 6bcd89e792..ddf93d109b 100644 --- a/plugins/SitesManager/Controller.php +++ b/plugins/SitesManager/Controller.php @@ -36,6 +36,7 @@ class Piwik_SitesManager_Controller extends Piwik_Controller Piwik::checkUserHasViewAccess($idSite); $jsTag = Piwik::getJavascriptCode($idSite, Piwik_Url::getCurrentUrlWithoutFileName()); $view = Piwik_View::factory('DisplayJavascriptCode'); + $this->setGeneralVariablesView($view); $view->menu = Piwik_GetAdminMenu(); $view->jsTag = $jsTag; echo $view->render(); diff --git a/plugins/SitesManager/templates/DisplayJavascriptCode.tpl b/plugins/SitesManager/templates/DisplayJavascriptCode.tpl index 20db67fbf6..9fa7c7f617 100644 --- a/plugins/SitesManager/templates/DisplayJavascriptCode.tpl +++ b/plugins/SitesManager/templates/DisplayJavascriptCode.tpl @@ -22,11 +22,11 @@ code { </style> {/literal} +<h2>{$siteName}</h2> <p>{'SitesManager_JsTrackingTagHelp'|translate}:</p> <code>{$jsTag}</code> - <ul style="list-style-type:disc; padding-left:20px"> {include file=SitesManager/templates/JavascriptTagHelp.tpl} </ul> |