diff options
author | mattpiwik <matthieu.aubry@gmail.com> | 2010-07-29 22:50:36 +0400 |
---|---|---|
committer | mattpiwik <matthieu.aubry@gmail.com> | 2010-07-29 22:50:36 +0400 |
commit | ef54e904f2443b951ae6c6c1244e0416b29aee0c (patch) | |
tree | 2c58186da3d19b4eded61d6630ea1b8bf5977852 /plugins | |
parent | d1f328c76d637d94d7380772a3509b9d6c18df06 (diff) |
small UI modifs
git-svn-id: http://dev.piwik.org/svn/trunk@2800 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/CoreHome/templates/datatable.css | 12 | ||||
-rw-r--r-- | plugins/CoreHome/templates/datatable.js | 30 | ||||
-rw-r--r-- | plugins/CoreHome/templates/datatable_footer.tpl | 10 | ||||
-rw-r--r-- | plugins/Live/templates/visitorLog.tpl | 2 | ||||
-rw-r--r-- | plugins/VisitorGenerator/Generator.php | 2 | ||||
-rw-r--r-- | plugins/VisitsSummary/templates/index.tpl | 13 |
6 files changed, 29 insertions, 40 deletions
diff --git a/plugins/CoreHome/templates/datatable.css b/plugins/CoreHome/templates/datatable.css index a0730f92e3..1a0443236e 100644 --- a/plugins/CoreHome/templates/datatable.css +++ b/plugins/CoreHome/templates/datatable.css @@ -316,11 +316,13 @@ table thead div { text-align: right; } -.dataTableNext,.dataTablePrevious,.dataTableSearchPattern,.pk-loadingDataTable +.dataTableNext,.dataTablePrevious,.dataTableSearchPattern { display: none; } - +.dataTableFeatures .loadingPiwik { + font-size:0.9em; +} .subDataTable .dataTableFooterIcons { height: 0px; } @@ -411,12 +413,6 @@ table thead div { clear: both; } -.pk-loadingDataTable { - float: left; - color: #193B6C; - padding: 0 0.5em; -} - /* Actions table */ table.dataTableActions tr td.labelodd { background-image: none; diff --git a/plugins/CoreHome/templates/datatable.js b/plugins/CoreHome/templates/datatable.js index 84bda08791..d04f5682f5 100644 --- a/plugins/CoreHome/templates/datatable.js +++ b/plugins/CoreHome/templates/datatable.js @@ -136,7 +136,7 @@ dataTable.prototype = // Function called to trigger the AJAX request // The ajax request contains the function callback to trigger if the request is successful or failed - // displayLoading = false When we don't want to display the Loading... DIV .pk-loadingDataTable + // displayLoading = false When we don't want to display the Loading... DIV .loadingPiwik // for example when the script add a Loading... it self and doesn't want to display the generic Loading reloadAjaxDataTable: function(displayLoading, callbackSuccess) { @@ -153,7 +153,7 @@ dataTable.prototype = if(displayLoading) { - $('#'+self.workingDivId+' .pk-loadingDataTable').last().css('display','block'); + $('#'+self.workingDivId+' .loadingPiwik').last().css('display','block'); } $.ajax(self.buildAjaxRequest(callbackSuccess)); @@ -696,24 +696,16 @@ dataTable.prototype = if(typeof truncationOffset == 'undefined') { truncationOffset = 0; } - var truncationLimit = 30; - // in a subtable - if(typeof self.param.idSubtable != 'undefined') - { - truncationLimit = 25; - } + var truncationLimit = 50; +/* Different truncation limit for different datatable types? + // in a subtable + if(typeof self.param.idSubtable != 'undefined') {} // when showing all columns if(typeof self.param.idSubtable == 'undefined' - && self.param.viewDataTable == 'tableAllColumns') - { - truncationLimit = 17; - } + && self.param.viewDataTable == 'tableAllColumns') {} // when showing all columns in a subtable, space is restricted - else if(self.param.viewDataTable == 'tableAllColumns') - { - truncationLimit = 10; - } - + else if(self.param.viewDataTable == 'tableAllColumns') {} +*/ truncationLimit += truncationOffset; $(domElemToTruncate).truncate(truncationLimit); @@ -760,7 +752,7 @@ dataTable.prototype = '<tr>'+ '<td colspan="'+numberOfColumns+'" class="cellSubDataTable">'+ '<div id="'+divIdToReplaceWithSubTable+'">'+ - '<span class="pk-loadingDataTable" style="display:inline"><img src="themes/default/images/loading-blue.gif" />'+ _pk_translate('General_Loading_js') +'</span>'+ + '<span class="loadingPiwik" style="display:inline"><img src="themes/default/images/loading-blue.gif" />'+ _pk_translate('General_Loading_js') +'</span>'+ '</div>'+ '</td>'+ '</tr>' @@ -964,7 +956,7 @@ actionDataTable.prototype = $(domElem).after( '\ <tr id="'+divIdToReplaceWithSubTable+'" class="cellSubDataTable">\ <td colspan="'+numberOfColumns+'">\ - <span class="pk-loadingDataTable" style="display:inline"><img src="themes/default/images/loading-blue.gif" /> Loading...</span>\ + <span class="loadingPiwik" style="display:inline"><img src="themes/default/images/loading-blue.gif" /> Loading...</span>\ </td>\ </tr>\ '); diff --git a/plugins/CoreHome/templates/datatable_footer.tpl b/plugins/CoreHome/templates/datatable_footer.tpl index 95b22146dc..bb9270a3e8 100644 --- a/plugins/CoreHome/templates/datatable_footer.tpl +++ b/plugins/CoreHome/templates/datatable_footer.tpl @@ -6,16 +6,16 @@ {if $properties.show_offset_information} -<div> +<span> <span class="dataTablePages"></span> -</div> +</span> {/if} {if $properties.show_pagination_control} -<div> +<span> <span class="dataTablePrevious">‹ {'General_Previous'|translate}</span> <span class="dataTableNext">{'General_Next'|translate} ›</span> -</div> +</span> {/if} {if $properties.show_search} @@ -86,7 +86,7 @@ </div> {/if} -<span class="pk-loadingDataTable"><img src="themes/default/images/loading-blue.gif" /> {'General_LoadingData'|translate}</span> +<span class="loadingPiwik" style='display:none'><img src="themes/default/images/loading-blue.gif" /> {'General_LoadingData'|translate}</span> </div> <div class="dataTableSpacer" /> diff --git a/plugins/Live/templates/visitorLog.tpl b/plugins/Live/templates/visitorLog.tpl index 4aedc49068..5cc377c377 100644 --- a/plugins/Live/templates/visitorLog.tpl +++ b/plugins/Live/templates/visitorLog.tpl @@ -96,7 +96,7 @@ <td class="column" style="width:55%" width="55%"> <strong> {$visitor.columns.actionDetails|@count} - {if $visitor.columns.actionDetails|@count eq 1} + {if $visitor.columns.actionDetails|@count <= 1} {'Live_Action'|translate} {else} {'Live_Actions'|translate} diff --git a/plugins/VisitorGenerator/Generator.php b/plugins/VisitorGenerator/Generator.php index c981e20308..fc16933d3e 100644 --- a/plugins/VisitorGenerator/Generator.php +++ b/plugins/VisitorGenerator/Generator.php @@ -453,7 +453,7 @@ class Piwik_VisitorGenerator_Generator $this->setCurrentRequest( 'url' ,$url); // setup the title of the page - $this->setCurrentRequest( 'action_name',$this->getRandomString(15,5)); + $this->setCurrentRequest( 'action_name',$this->getRandomString(100,5)); } /** diff --git a/plugins/VisitsSummary/templates/index.tpl b/plugins/VisitsSummary/templates/index.tpl index 38ab07d212..f2f9f8ce58 100644 --- a/plugins/VisitsSummary/templates/index.tpl +++ b/plugins/VisitsSummary/templates/index.tpl @@ -5,9 +5,10 @@ <h2>{'General_Report'|translate}</h2> {include file=VisitsSummary/templates/sparklines.tpl} - -<br /><br /><br /> -<p style='color:lightgrey; size:0.8em;'> -{'VisitsSummary_GenerateTime'|translate:$totalTimeGeneration:$totalNumberOfQueries} -{if $totalNumberOfQueries != 0}, {'VisitsSummary_GenerateQueries'|translate:$totalNumberOfQueries}{/if} -</p> +{* +Time page generation + <p style='color:lightgrey; size:0.8em;'> + {'VisitsSummary_GenerateTime'|translate:$totalTimeGeneration:$totalNumberOfQueries} + {if $totalNumberOfQueries != 0}, {'VisitsSummary_GenerateQueries'|translate:$totalNumberOfQueries}{/if} + </p> +*}
\ No newline at end of file |