diff --git a/submodules/callLogs/callLogs.css b/submodules/callLogs/callLogs.css index 5b73499..d373f7a 100644 --- a/submodules/callLogs/callLogs.css +++ b/submodules/callLogs/callLogs.css @@ -155,6 +155,9 @@ #call_logs_container .grid-cell.hangup { width: 15%; } +#call_logs_container .call-logs-grid.no-report-link .grid-cell.hangup { + width: 25%; +} #call_logs_container .grid-cell.full-width { width: 100%; } diff --git a/submodules/callLogs/callLogs.js b/submodules/callLogs/callLogs.js index 05cba56..5f28596 100644 --- a/submodules/callLogs/callLogs.js +++ b/submodules/callLogs/callLogs.js @@ -33,7 +33,8 @@ define(function(require){ type: type || 'today', fromDate: fromDate, toDate: toDate, - showFilteredDates: ['thisMonth', 'thisWeek'].indexOf(type) >= 0 + showFilteredDates: ['thisMonth', 'thisWeek'].indexOf(type) >= 0, + showReport: monster.config.whitelabel.callReportEmail ? true : false }; // Reset variables used to link A-Legs & B-Legs sent by different pages in the API @@ -45,7 +46,7 @@ define(function(require){ template = $(monster.template(self, 'callLogs-layout', dataTemplate)); if(cdrs && cdrs.length) { - var cdrsTemplate = $(monster.template(self, 'callLogs-cdrsList', {cdrs: cdrs})); + var cdrsTemplate = $(monster.template(self, 'callLogs-cdrsList', {cdrs: cdrs, showReport: monster.config.whitelabel.callReportEmail ? true : false})); template.find('.call-logs-grid .grid-row-container') .append(cdrsTemplate); } @@ -201,7 +202,7 @@ define(function(require){ loaderDiv.find('.loading-message > i').toggleClass('fa-spin'); self.callLogsGetCdrs(fromDate, toDate, function(newCdrs, nextStartKey) { newCdrs = self.callLogsFormatCdrs(newCdrs); - cdrsTemplate = $(monster.template(self, 'callLogs-cdrsList', {cdrs: newCdrs})); + cdrsTemplate = $(monster.template(self, 'callLogs-cdrsList', {cdrs: newCdrs, showReport: monster.config.whitelabel.callReportEmail ? true : false})); startKey = nextStartKey; if(!startKey) { @@ -365,7 +366,7 @@ define(function(require){ hangupCause: cdr.hangup_cause, hangupHelp: hangupHelp, isOutboundCall: isOutboundCall, - mailtoLink: "mailto:support@2600hz.com" + mailtoLink: "mailto:" + monster.config.whitelabel.callReportEmail + "?subject=Call Report: " + cdr.call_id + "&body=Please describe the details of the issue:%0D%0A%0D%0A" + "%0D%0A____________________________________________________________%0D%0A" diff --git a/views/callLogs-cdrsList.html b/views/callLogs-cdrsList.html index ed4fc2e..3755f5b 100644 --- a/views/callLogs-cdrsList.html +++ b/views/callLogs-cdrsList.html @@ -45,11 +45,13 @@ + {{#if ../showReport}}
+ {{/if}} {{#each this.bLegs}}