-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7365 from piwik/no-data-welcome
Show the JS tracking code instead of the dashboard while no visit is tracked
- Loading branch information
Showing
10 changed files
with
137 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{% extends "dashboard.twig" %} | ||
|
||
{% block notification %}{% endblock %} | ||
|
||
{% block content %} | ||
|
||
{% include "@CoreHome/_siteSelectHeader.twig" %} | ||
|
||
<div class="site-without-data"> | ||
|
||
<h2>{{ 'SitesManager_SiteWithoutDataTitle'|translate }}</h2> | ||
|
||
<p> | ||
{{ 'SitesManager_SiteWithoutDataDescription'|translate }} | ||
{{ 'SitesManager_SiteWithoutDataSetupTracking'|translate('<a href="' ~ linkTo({ | ||
'module': 'CoreAdminHome', | ||
'action': 'trackingCodeGenerator', | ||
}) ~ '">', '</a>')|raw }} | ||
</p> | ||
|
||
{{ trackingHelp|raw }} | ||
|
||
</div> | ||
|
||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/processed-ui-screenshots | ||
/screenshot-diffs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/*! | ||
* Piwik - free/libre analytics platform | ||
* | ||
* Screenshot integration tests. | ||
* | ||
* @link http://piwik.org | ||
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later | ||
*/ | ||
|
||
describe("EmptySite", function () { | ||
this.timeout(0); | ||
|
||
var generalParams = 'idSite=4&period=day&date=2010-01-03'; | ||
|
||
it('should show the tracking code if the website has no recorded data', function (done) { | ||
var urlToTest = "?" + generalParams + "&module=CoreHome&action=index"; | ||
|
||
expect.screenshot('emptySiteDashboard').to.be.captureSelector('.site-without-data', function (page) { | ||
page.load(urlToTest); | ||
}, done); | ||
}); | ||
}); |
Binary file added
BIN
+101 KB
...tesManager/tests/UI/expected-ui-screenshots/SitesManager_emptySiteDashboard.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters