Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattpiwik <matthieu.aubry@gmail.com>2012-02-08 14:02:33 +0400
committermattpiwik <matthieu.aubry@gmail.com>2012-02-08 14:02:33 +0400
commita81d481b4acbc995f4a432f766d1cc158dbb15fe (patch)
treea6f021edd7202d2d9bfe0ed3df634db19c35107f /plugins/Live/templates
parent4f046222add596a6f88d9d45e816f2496623ceff (diff)
Fixes #2840
* Kuddos Juerd for patch * Changed to "append" instead of prepend so that it is less visible / eye catching * Changed color to standard grey & added tooltip for claririty / usability git-svn-id: http://dev.piwik.org/svn/trunk@5784 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'plugins/Live/templates')
-rw-r--r--plugins/Live/templates/live.css9
-rw-r--r--plugins/Live/templates/visitorLog.tpl24
2 files changed, 32 insertions, 1 deletions
diff --git a/plugins/Live/templates/live.css b/plugins/Live/templates/live.css
index abfd3eb4cc..b48c49af68 100644
--- a/plugins/Live/templates/live.css
+++ b/plugins/Live/templates/live.css
@@ -85,4 +85,11 @@ ol.visitorLog li {
color: #BBBBBB;
font-size: 9pt;
margin-right:2px;
-} \ No newline at end of file
+}
+.repeat {
+ font-weight: bold;
+ border: 1px solid #444444;
+ border-radius: 3px 3px 3px 3px;
+ padding: 2px;
+}
+
diff --git a/plugins/Live/templates/visitorLog.tpl b/plugins/Live/templates/visitorLog.tpl
index 250aba2c05..0ef46a0349 100644
--- a/plugins/Live/templates/visitorLog.tpl
+++ b/plugins/Live/templates/visitorLog.tpl
@@ -262,6 +262,30 @@
$('.dataTablePrevious').hide();
dataTableVisitorLog.param.previous = 0;
}
+
+ // Replace duplicated page views by a NX count instead of using too much vertical space
+ $("ol.visitorLog").each(function () {
+ var prevelement;
+ var prevhtml;
+ var counter = 0;
+ $(this).find("li").each(function () {
+ counter++;
+ $(this).val(counter);
+ var current = $(this).html();
+ if (current == prevhtml) {
+ var repeat = prevelement.find(".repeat")
+ if (repeat.length) {
+ repeat.html( (parseInt(repeat.html()) + 1) + "x" );
+ } else {
+ prevelement.append($("<em title='{/literal}{'Live_PageRefreshed'|translate|escape:'js'}{literal}' class='repeat'>2x</em>"));
+ }
+ $(this).hide();
+ } else {
+ prevhtml = current;
+ prevelement = $(this);
+ }
+ });
+ });
});
{/literal}
</script>