Browse Source

KAZOO-2486: We now display the right timezone in the Call Logs

4.3
Jean-Roch Maitre 12 years ago
parent
commit
1c793928b9
5 changed files with 9 additions and 10 deletions
  1. +0
    -1
      i18n/en-US.json
  2. +0
    -1
      i18n/fr-FR.json
  3. +4
    -4
      submodules/callLogs/callLogs.css
  4. +3
    -2
      submodules/callLogs/callLogs.js
  5. +2
    -2
      views/callLogs-layout.html

+ 0
- 1
i18n/en-US.json View File

@ -577,7 +577,6 @@
"inboundCall": "Inbound",
"outboundCall": "Outbound",
"dateTime1": "Date/Time",
"dateTime2": "(PST)",
"from": "From",
"to": "To",
"duration1": "Duration",


+ 0
- 1
i18n/fr-FR.json View File

@ -579,7 +579,6 @@
"inboundCall": "Entrant",
"outboundCall": "Sortant",
"dateTime1": "Date/Heure",
"dateTime2": "(PST)",
"from": "Depuis",
"to": "À",
"duration1": "Durée",


+ 4
- 4
submodules/callLogs/callLogs.css View File

@ -114,10 +114,10 @@
border-left: solid 1px #e3e3e3;
}
#call_logs_container .grid-cell.direction {
width: 5%;
width: 4%;
}
#call_logs_container .grid-cell.datetime {
width: 10%;
width: 12%;
}
#call_logs_container .grid-cell.from {
width: 20%;
@ -126,7 +126,7 @@
width: 20%;
}
#call_logs_container .grid-cell.duration {
width: 10%;
width: 9%;
}
#call_logs_container .grid-cell.hangup {
width: 15%;
@ -215,4 +215,4 @@
}
#call_logs_details_popup .details-table tbody tr:last-of-type td:last-of-type {
border-bottom-right-radius: 4px;
}
}

+ 3
- 2
submodules/callLogs/callLogs.js View File

@ -34,7 +34,9 @@ define(function(require){
callLogsRenderContent: function(parent, fromDate, toDate) {
var self = this,
dataTemplate = {},
dataTemplate = {
timezone: 'GMT' + jstz.determine_timezone().offset()
},
template;
if(!toDate) {
@ -51,7 +53,6 @@ define(function(require){
self.callLogsGetCdrs(fromDate, toDate, function(cdrs) {
cdrs = self.callLogsFormatCdrs(cdrs);
dataTemplate.cdrs = cdrs;
template = $(monster.template(self, 'callLogs-layout', dataTemplate));


+ 2
- 2
views/callLogs-layout.html View File

@ -36,7 +36,7 @@
</div>
<div class="grid-cell datetime">
<div class="sub-cell cell-top">{{i18n.callLogs.gridHeaders.dateTime1}}</div>
<div class="sub-cell cell-bottom">{{i18n.callLogs.gridHeaders.dateTime2}}</div>
<div class="sub-cell cell-bottom">{{timezone}}</div>
</div>
<div class="grid-cell from">
<div class="sub-cell single-cell">{{i18n.callLogs.gridHeaders.from}}</div>
@ -171,4 +171,4 @@
{{/each}}
</div>
</div>
</div>
</div>

Loading…
Cancel
Save