Adding durafmt library and use it from enterprise global relay export (#8487)

* Adding durafmt library and use it from enterprise global relay export

* Allow to specify different server host and server name on smtp connections

* Fixing utils/smtp tests
Этот коммит содержится в:
Jesús Espino
2018-03-27 10:23:33 +02:00
коммит произвёл GitHub
родитель 8491ba5740
Коммит 9e6db178b0
15 изменённых файлов: 545 добавлений и 42 удалений

Просмотреть файл

@@ -65,7 +65,7 @@
<li><span class="bold">Channel:&nbsp;</span>{{.Props.ChannelName}}</li>
<li><span class="bold">Started:&nbsp;</span>{{.Props.Started}}</li>
<li><span class="bold">Ended:&nbsp;</span>{{.Props.Ended}}</li>
<li><span class="bold">Duration:&nbsp;</span>{{.Props.Duration}}&nbsp;Minutes</li>
<li><span class="bold">Duration:&nbsp;</span>{{.Props.Duration}}</li>
</ul>
</div>
<table class="participants">
@@ -88,4 +88,4 @@
</div>
<p>Exported on {{.Props.ExportDate}}</p>
{{end}}
{{end}}

Просмотреть файл

@@ -4,7 +4,7 @@
<td class="email">{{.Props.Email}}</td>
<td class="joined">{{.Props.Joined}}</td>
<td class="left">{{.Props.Left}}</td>
<td class="duration">{{.Props.DurationMinutes}} Minutes</td>
<td class="duration">{{.Props.Duration}}</td>
<td class="messages">{{.Props.NumMessages}}</td>
</tr>
{{end}}
{{end}}