Skip to content
This repository has been archived by the owner on Jan 23, 2018. It is now read-only.

Commit

Permalink
change the title and the date range labels
Browse files Browse the repository at this point in the history
  • Loading branch information
bpouzet committed May 10, 2012
1 parent 969c878 commit c08a944
Show file tree
Hide file tree
Showing 21 changed files with 272 additions and 96 deletions.
5 changes: 2 additions & 3 deletions src/style/Style.css
Expand Up @@ -15,7 +15,7 @@
s|Application
{
background-color:#FFFFFF;
color:black;
color: #898989;
fontSize:16;
}
s|ActionBar{
Expand Down Expand Up @@ -157,9 +157,8 @@ s|RadioButton
color:#FF9E00;
}

#titleView{
#titleLabel{
fontSize: 18;
textAlign: center;
}

.legend{
Expand Down
16 changes: 12 additions & 4 deletions src/views/reports/actions/Downloads.mxml
Expand Up @@ -8,7 +8,6 @@
-->
<s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:views="views.*"
xmlns:states="views.states.*"
actionBarVisible="false" currentState="loading" viewActivate="initView()">
<fx:Script>
Expand All @@ -26,7 +25,9 @@
private var result:XMLListCollection;
private function initView():void{
titleView.text = data + ' - ' + resourceManager.getString('piwik', 'General_DateRange') + ' ' + dateTimeFormatter.format(FlexGlobals.topLevelApplication.selectedStartDate) + " - " + dateTimeFormatter.format(FlexGlobals.topLevelApplication.selectedEndDate);
titleLabel.text = data as String;
dateLabel.text = resourceManager.getString('piwik', 'General_DateRangeFromTo').replace('%s', shortDateFormatter.format(FlexGlobals.topLevelApplication.selectedStartDate)).replace('%s', shortDateFormatter.format(FlexGlobals.topLevelApplication.selectedEndDate));
profile = FlexGlobals.topLevelApplication.selectedProfile;
report = new Reports();
Expand Down Expand Up @@ -62,9 +63,10 @@
<fx:Declarations>
<!-- Placer ici les éléments non visuels (services et objets de valeur, par exemple). -->

<s:DateTimeFormatter id="dateTimeFormatter"
<s:DateTimeFormatter id="shortDateFormatter" dateStyle="short"
locale="{resourceManager.getString('piwik', 'General_Locale')}"
timeStyle="none"/>

</fx:Declarations>

<s:states>
Expand All @@ -77,7 +79,13 @@
<s:VerticalLayout paddingBottom="5" paddingLeft="5" paddingRight="5" paddingTop="10"/>
</s:layout>

<s:Label id="titleView" width="100%"/>
<s:Group width="100%">
<s:layout>
<s:VerticalLayout horizontalAlign="center"/>
</s:layout>
<s:Label id="titleLabel"/>
<s:Label id="dateLabel"/>
</s:Group>

<states:Loader includeIn="loading" width="100%" height="100%"/>

Expand Down
15 changes: 12 additions & 3 deletions src/views/reports/actions/Outlinks.mxml
Expand Up @@ -26,7 +26,9 @@
private var result:XMLListCollection;
private function initView():void{
titleView.text = data + ' - ' + resourceManager.getString('piwik', 'General_DateRange') + ' ' + dateTimeFormatter.format(FlexGlobals.topLevelApplication.selectedStartDate) + " - " + dateTimeFormatter.format(FlexGlobals.topLevelApplication.selectedEndDate);
titleLabel.text = data as String;
dateLabel.text = resourceManager.getString('piwik', 'General_DateRangeFromTo').replace('%s', shortDateFormatter.format(FlexGlobals.topLevelApplication.selectedStartDate)).replace('%s', shortDateFormatter.format(FlexGlobals.topLevelApplication.selectedEndDate));
profile = FlexGlobals.topLevelApplication.selectedProfile;
report = new Reports();
Expand Down Expand Up @@ -61,9 +63,10 @@
<fx:Declarations>
<!-- Placer ici les éléments non visuels (services et objets de valeur, par exemple). -->

<s:DateTimeFormatter id="dateTimeFormatter"
<s:DateTimeFormatter id="shortDateFormatter" dateStyle="short"
locale="{resourceManager.getString('piwik', 'General_Locale')}"
timeStyle="none"/>

</fx:Declarations>

<s:states>
Expand All @@ -76,7 +79,13 @@
<s:VerticalLayout paddingBottom="5" paddingLeft="5" paddingRight="5" paddingTop="10"/>
</s:layout>

<s:Label id="titleView" width="100%"/>
<s:Group width="100%">
<s:layout>
<s:VerticalLayout horizontalAlign="center"/>
</s:layout>
<s:Label id="titleLabel"/>
<s:Label id="dateLabel"/>
</s:Group>

<states:Loader includeIn="loading" width="100%" height="100%"/>

Expand Down
15 changes: 12 additions & 3 deletions src/views/reports/actions/PageTitles.mxml
Expand Up @@ -25,7 +25,9 @@
private var result:XMLListCollection;
private function initView():void{
titleView.text = data + " - " + resourceManager.getString('piwik', 'General_DateRange') + ' ' + dateTimeFormatter.format(FlexGlobals.topLevelApplication.selectedStartDate) + " - " + dateTimeFormatter.format(FlexGlobals.topLevelApplication.selectedEndDate);
titleLabel.text = data as String;
dateLabel.text = resourceManager.getString('piwik', 'General_DateRangeFromTo').replace('%s', shortDateFormatter.format(FlexGlobals.topLevelApplication.selectedStartDate)).replace('%s', shortDateFormatter.format(FlexGlobals.topLevelApplication.selectedEndDate));
profile = FlexGlobals.topLevelApplication.selectedProfile;
report = new Reports();
Expand Down Expand Up @@ -60,9 +62,10 @@
<fx:Declarations>
<!-- Placer ici les éléments non visuels (services et objets de valeur, par exemple). -->

<s:DateTimeFormatter id="dateTimeFormatter"
<s:DateTimeFormatter id="shortDateFormatter" dateStyle="short"
locale="{resourceManager.getString('piwik', 'General_Locale')}"
timeStyle="none"/>

</fx:Declarations>

<s:states>
Expand All @@ -75,7 +78,13 @@
<s:VerticalLayout paddingBottom="5" paddingLeft="5" paddingRight="5" paddingTop="10"/>
</s:layout>

<s:Label id="titleView" width="100%"/>
<s:Group width="100%">
<s:layout>
<s:VerticalLayout horizontalAlign="center"/>
</s:layout>
<s:Label id="titleLabel"/>
<s:Label id="dateLabel"/>
</s:Group>

<states:Loader includeIn="loading" width="100%" height="100%"/>

Expand Down
15 changes: 12 additions & 3 deletions src/views/reports/actions/Pages.mxml
Expand Up @@ -26,7 +26,9 @@
private var result:XMLListCollection;
private function initView():void{
titleView.text = data + " - " + resourceManager.getString('piwik', 'General_DateRange') + ' ' + dateTimeFormatter.format(FlexGlobals.topLevelApplication.selectedStartDate) + " - " + dateTimeFormatter.format(FlexGlobals.topLevelApplication.selectedEndDate);
titleLabel.text = data as String;
dateLabel.text = resourceManager.getString('piwik', 'General_DateRangeFromTo').replace('%s', shortDateFormatter.format(FlexGlobals.topLevelApplication.selectedStartDate)).replace('%s', shortDateFormatter.format(FlexGlobals.topLevelApplication.selectedEndDate));
profile = FlexGlobals.topLevelApplication.selectedProfile;
report = new Reports();
Expand Down Expand Up @@ -61,9 +63,10 @@
<fx:Declarations>
<!-- Placer ici les éléments non visuels (services et objets de valeur, par exemple). -->

<s:DateTimeFormatter id="dateTimeFormatter"
<s:DateTimeFormatter id="shortDateFormatter" dateStyle="short"
locale="{resourceManager.getString('piwik', 'General_Locale')}"
timeStyle="none"/>

</fx:Declarations>

<s:states>
Expand All @@ -76,7 +79,13 @@
<s:VerticalLayout paddingBottom="5" paddingLeft="5" paddingRight="5" paddingTop="10"/>
</s:layout>

<s:Label id="titleView" width="100%"/>
<s:Group width="100%">
<s:layout>
<s:VerticalLayout horizontalAlign="center"/>
</s:layout>
<s:Label id="titleLabel"/>
<s:Label id="dateLabel"/>
</s:Group>

<states:Loader includeIn="loading" width="100%" height="100%"/>

Expand Down
15 changes: 12 additions & 3 deletions src/views/reports/referers/Campaigns.mxml
Expand Up @@ -26,7 +26,9 @@
private var result:XMLListCollection;
private function initView():void{
titleView.text = data + ' - ' + resourceManager.getString('piwik', 'General_DateRange') + ' ' + dateTimeFormatter.format(FlexGlobals.topLevelApplication.selectedStartDate) + " - " + dateTimeFormatter.format(FlexGlobals.topLevelApplication.selectedEndDate);
titleLabel.text = data as String;
dateLabel.text = resourceManager.getString('piwik', 'General_DateRangeFromTo').replace('%s', shortDateFormatter.format(FlexGlobals.topLevelApplication.selectedStartDate)).replace('%s', shortDateFormatter.format(FlexGlobals.topLevelApplication.selectedEndDate));
profile = FlexGlobals.topLevelApplication.selectedProfile;
report = new Reports();
Expand Down Expand Up @@ -61,9 +63,10 @@
<fx:Declarations>
<!-- Placer ici les éléments non visuels (services et objets de valeur, par exemple). -->

<s:DateTimeFormatter id="dateTimeFormatter"
<s:DateTimeFormatter id="shortDateFormatter" dateStyle="short"
locale="{resourceManager.getString('piwik', 'General_Locale')}"
timeStyle="none"/>

</fx:Declarations>

<s:states>
Expand All @@ -76,7 +79,13 @@
<s:VerticalLayout paddingBottom="5" paddingLeft="5" paddingRight="5" paddingTop="10"/>
</s:layout>

<s:Label id="titleView" width="100%"/>
<s:Group width="100%">
<s:layout>
<s:VerticalLayout horizontalAlign="center"/>
</s:layout>
<s:Label id="titleLabel"/>
<s:Label id="dateLabel"/>
</s:Group>

<states:Loader includeIn="loading" width="100%" height="100%"/>

Expand Down
15 changes: 12 additions & 3 deletions src/views/reports/referers/Keywords.mxml
Expand Up @@ -27,7 +27,9 @@
private var result:XMLListCollection;
private function initView():void{
titleView.text = data + ' - ' + resourceManager.getString('piwik', 'General_DateRange') + ' ' + dateTimeFormatter.format(FlexGlobals.topLevelApplication.selectedStartDate) + " - " + dateTimeFormatter.format(FlexGlobals.topLevelApplication.selectedEndDate);
titleLabel.text = data as String;
dateLabel.text = resourceManager.getString('piwik', 'General_DateRangeFromTo').replace('%s', shortDateFormatter.format(FlexGlobals.topLevelApplication.selectedStartDate)).replace('%s', shortDateFormatter.format(FlexGlobals.topLevelApplication.selectedEndDate));
profile = FlexGlobals.topLevelApplication.selectedProfile;
report = new Reports();
Expand Down Expand Up @@ -62,9 +64,10 @@
<fx:Declarations>
<!-- Placer ici les éléments non visuels (services et objets de valeur, par exemple). -->

<s:DateTimeFormatter id="dateTimeFormatter"
<s:DateTimeFormatter id="shortDateFormatter" dateStyle="short"
locale="{resourceManager.getString('piwik', 'General_Locale')}"
timeStyle="none"/>

</fx:Declarations>

<s:states>
Expand All @@ -77,7 +80,13 @@
<s:VerticalLayout paddingBottom="5" paddingLeft="5" paddingRight="5" paddingTop="10"/>
</s:layout>

<s:Label id="titleView" width="100%"/>
<s:Group width="100%">
<s:layout>
<s:VerticalLayout horizontalAlign="center"/>
</s:layout>
<s:Label id="titleLabel"/>
<s:Label id="dateLabel"/>
</s:Group>

<states:Loader includeIn="loading" width="100%" height="100%"/>

Expand Down
15 changes: 12 additions & 3 deletions src/views/reports/referers/SearchEngines.mxml
Expand Up @@ -26,7 +26,9 @@
private var result:XMLListCollection;
private function initView():void{
titleView.text = data + ' - ' + resourceManager.getString('piwik', 'General_DateRange') + ' ' + dateTimeFormatter.format(FlexGlobals.topLevelApplication.selectedStartDate) + " - " + dateTimeFormatter.format(FlexGlobals.topLevelApplication.selectedEndDate);
titleLabel.text = data as String;
dateLabel.text = resourceManager.getString('piwik', 'General_DateRangeFromTo').replace('%s', shortDateFormatter.format(FlexGlobals.topLevelApplication.selectedStartDate)).replace('%s', shortDateFormatter.format(FlexGlobals.topLevelApplication.selectedEndDate));
profile = FlexGlobals.topLevelApplication.selectedProfile;
report = new Reports();
Expand Down Expand Up @@ -62,9 +64,10 @@
<fx:Declarations>
<!-- Placer ici les éléments non visuels (services et objets de valeur, par exemple). -->

<s:DateTimeFormatter id="dateTimeFormatter"
<s:DateTimeFormatter id="shortDateFormatter" dateStyle="short"
locale="{resourceManager.getString('piwik', 'General_Locale')}"
timeStyle="none"/>

</fx:Declarations>

<s:states>
Expand All @@ -77,7 +80,13 @@
<s:VerticalLayout paddingBottom="5" paddingLeft="5" paddingRight="5" paddingTop="10"/>
</s:layout>

<s:Label id="titleView" width="100%"/>
<s:Group width="100%">
<s:layout>
<s:VerticalLayout horizontalAlign="center"/>
</s:layout>
<s:Label id="titleLabel"/>
<s:Label id="dateLabel"/>
</s:Group>

<states:Loader includeIn="loading" width="100%" height="100%"/>

Expand Down
15 changes: 12 additions & 3 deletions src/views/reports/referers/Websites.mxml
Expand Up @@ -26,7 +26,9 @@
private var result:XMLListCollection;
private function initView():void{
titleView.text = data + ' - ' + resourceManager.getString('piwik', 'General_DateRange') + ' ' + dateTimeFormatter.format(FlexGlobals.topLevelApplication.selectedStartDate) + " - " + dateTimeFormatter.format(FlexGlobals.topLevelApplication.selectedEndDate);
titleLabel.text = data as String;
dateLabel.text = resourceManager.getString('piwik', 'General_DateRangeFromTo').replace('%s', shortDateFormatter.format(FlexGlobals.topLevelApplication.selectedStartDate)).replace('%s', shortDateFormatter.format(FlexGlobals.topLevelApplication.selectedEndDate));
profile = FlexGlobals.topLevelApplication.selectedProfile;
report = new Reports();
Expand Down Expand Up @@ -61,9 +63,10 @@
<fx:Declarations>
<!-- Placer ici les éléments non visuels (services et objets de valeur, par exemple). -->

<s:DateTimeFormatter id="dateTimeFormatter"
<s:DateTimeFormatter id="shortDateFormatter" dateStyle="short"
locale="{resourceManager.getString('piwik', 'General_Locale')}"
timeStyle="none"/>

</fx:Declarations>

<s:states>
Expand All @@ -76,7 +79,13 @@
<s:VerticalLayout paddingBottom="5" paddingLeft="5" paddingRight="5" paddingTop="10"/>
</s:layout>

<s:Label id="titleView" width="100%"/>
<s:Group width="100%">
<s:layout>
<s:VerticalLayout horizontalAlign="center"/>
</s:layout>
<s:Label id="titleLabel"/>
<s:Label id="dateLabel"/>
</s:Group>

<states:Loader includeIn="loading" width="100%" height="100%"/>

Expand Down
15 changes: 12 additions & 3 deletions src/views/reports/visitors/BrowserFamilies.mxml
Expand Up @@ -25,7 +25,9 @@
private var result:XMLListCollection;
private function initView():void{
titleView.text = data + " - " + resourceManager.getString('piwik', 'General_DateRange') + ' ' + dateTimeFormatter.format(FlexGlobals.topLevelApplication.selectedStartDate) + " - " + dateTimeFormatter.format(FlexGlobals.topLevelApplication.selectedEndDate);
titleLabel.text = data as String;
dateLabel.text = resourceManager.getString('piwik', 'General_DateRangeFromTo').replace('%s', shortDateFormatter.format(FlexGlobals.topLevelApplication.selectedStartDate)).replace('%s', shortDateFormatter.format(FlexGlobals.topLevelApplication.selectedEndDate));
profile = FlexGlobals.topLevelApplication.selectedProfile;
report = new Reports();
Expand Down Expand Up @@ -60,9 +62,10 @@
<fx:Declarations>
<!-- Placer ici les éléments non visuels (services et objets de valeur, par exemple). -->

<s:DateTimeFormatter id="dateTimeFormatter"
<s:DateTimeFormatter id="shortDateFormatter" dateStyle="short"
locale="{resourceManager.getString('piwik', 'General_Locale')}"
timeStyle="none"/>

</fx:Declarations>

<s:states>
Expand All @@ -76,7 +79,13 @@
<s:VerticalLayout paddingBottom="5" paddingLeft="5" paddingRight="5" paddingTop="10"/>
</s:layout>

<s:Label id="titleView" width="100%"/>
<s:Group width="100%">
<s:layout>
<s:VerticalLayout horizontalAlign="center"/>
</s:layout>
<s:Label id="titleLabel"/>
<s:Label id="dateLabel"/>
</s:Group>

<states:Loader includeIn="loading" width="100%" height="100%"/>

Expand Down

0 comments on commit c08a944

Please sign in to comment.