|
@@ -53,13 +53,20 @@
|
|
|
|
|
|
<% if !_.isEmpty(channel.last_log_in): %>
|
|
|
<div>
|
|
|
- <%- @T('Notice') %>:<br>
|
|
|
- <%= channel.last_log_in %>
|
|
|
+ <%- @T('Notice') %>:<br>
|
|
|
+ <%= channel.last_log_in %>
|
|
|
</div>
|
|
|
<% end %>
|
|
|
|
|
|
- <br>
|
|
|
+ <hr>
|
|
|
|
|
|
+ <div>
|
|
|
+ <%- @T('Destination Group') %>:<br>
|
|
|
+ <a href="#" class="js-channelGroupChange"><%= channel.group %></a>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </div>
|
|
|
+ <div class="action-block">
|
|
|
<%- @Icon('status', channel.status_out + " inline") %> <%- @T('Outbound') %>:<br>
|
|
|
<a class="js-editOutbound" href="#">
|
|
|
<% if channel.options.outbound && channel.options.outbound.options: %>
|
|
@@ -70,13 +77,14 @@
|
|
|
</a>
|
|
|
<% if !_.isEmpty(channel.last_log_out): %>
|
|
|
<div>
|
|
|
- <%- @T('Notice') %>:<br>
|
|
|
- <%= channel.last_log_out %>
|
|
|
+ <%- @T('Notice') %>:<br>
|
|
|
+ <%= channel.last_log_out %>
|
|
|
<div>
|
|
|
<% end %>
|
|
|
- </div>
|
|
|
- <div class="action-block">
|
|
|
- <%- @T('Email Adresses') %>:
|
|
|
+
|
|
|
+ <hr>
|
|
|
+
|
|
|
+ <%- @T('Email Address') %>:
|
|
|
<ul class="list">
|
|
|
<% if !_.isEmpty(channel.email_addresses): %>
|
|
|
<% for email_address in channel.email_addresses: %>
|
|
@@ -95,6 +103,7 @@
|
|
|
<% end %>
|
|
|
</ul>
|
|
|
<a class="text-muted js-emailAddressNew" href="#" title="<%- @Ti('New Email Address') %>">+ <%- @T('Add Email') %></a>
|
|
|
+
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="action-controls">
|
|
@@ -104,88 +113,14 @@
|
|
|
<% end %>
|
|
|
<% end %>
|
|
|
|
|
|
-<!--
|
|
|
-<% if _.isEmpty(@account_channels): %>
|
|
|
- <p><%- @T('You have no configured account right now.') %></p>
|
|
|
-<% else: %>
|
|
|
- <table class="table table-hover table-fluid user-list">
|
|
|
- <thead>
|
|
|
- <tr>
|
|
|
- <th><%- @T('Inbound') %></th>
|
|
|
- <th><%- @T('Outbound') %></th>
|
|
|
- <th><%- @T('Email Adresses') %></th>
|
|
|
- <th><%- @T('Action') %></th>
|
|
|
- </tr>
|
|
|
- </thead>
|
|
|
- <tbody>
|
|
|
- <% for channel in @account_channels: %>
|
|
|
- <tr data-id="<%- channel.id %>">
|
|
|
- <td class="noTruncate">
|
|
|
- <div class="horizontal">
|
|
|
- <%- @Icon('status', channel.status_in + " inline") %>
|
|
|
- <a class="flex js-editInbound" href="#">
|
|
|
- <%= channel.options.inbound.options.user %><br>
|
|
|
- <%= channel.options.inbound.options.host %> (<%= channel.options.inbound.adapter %>)
|
|
|
- </a>
|
|
|
- </div>
|
|
|
- </td>
|
|
|
- <td class="noTruncate">
|
|
|
- <div class="horizontal">
|
|
|
- <%- @Icon('status', channel.status_out + " inline") %>
|
|
|
- <a class="flex js-editOutbound" href="#">
|
|
|
- <% if channel.options.outbound && channel.options.outbound.options: %>
|
|
|
- <%= channel.options.outbound.options.user %><br>
|
|
|
- <%= channel.options.outbound.options.host %>
|
|
|
- <% end %>
|
|
|
- (<%= channel.options.outbound.adapter %>)
|
|
|
- </a>
|
|
|
- </div>
|
|
|
- </td>
|
|
|
- <td class="noTruncate">
|
|
|
- <ul class="list">
|
|
|
- <% if !_.isEmpty(channel.email_addresses): %>
|
|
|
- <% for email_address in channel.email_addresses: %>
|
|
|
- <li class="list-item" data-id="<%= email_address.id %>">
|
|
|
- <div class="list-item-name">
|
|
|
- <a href="" class="js-emailAddressEdit"><%= email_address.email %></a>
|
|
|
- </div>
|
|
|
- <div class="list-item-delete js-delete">
|
|
|
- <%- @Icon('diagonal-cross') %>
|
|
|
- </div>
|
|
|
- <% end %>
|
|
|
- <% else: %>
|
|
|
- <li class="list-item"><%- @T('none') %>
|
|
|
- <% end %>
|
|
|
- </ul>
|
|
|
- <a class="text-muted js-emailAddressNew" href="#" title="<%- @Ti('New Email Address') %>">+ <%- @Ti('Add Email') %></a>
|
|
|
- </td>
|
|
|
- <td class="noTruncate">
|
|
|
- <a href="#" data-type="delete" title="<%- @Ti('Delete') %>"><%- @Icon('trash') %></a>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <% if !_.isEmpty(channel.last_log_in): %>
|
|
|
- <tr>
|
|
|
- <td colspan="4"><%= channel.last_log_in %></td>
|
|
|
- </tr>
|
|
|
- <% end %>
|
|
|
- <% if !_.isEmpty(channel.last_log_out): %>
|
|
|
- <tr>
|
|
|
- <td colspan="4"><%= channel.last_log_out %></td>
|
|
|
- </tr>
|
|
|
- <% end %>
|
|
|
- <% end %>
|
|
|
- </tbody>
|
|
|
- </table>
|
|
|
-<% end %>
|
|
|
--->
|
|
|
<a class="btn btn--success js-channelNew"><%- @T('New') %></a>
|
|
|
|
|
|
<% if !_.isEmpty(@notification_channels) && !App.Config.get('system_online_service'): %>
|
|
|
<h2><%- @T('Email Notification') %></h2>
|
|
|
<% for channel in @notification_channels: %>
|
|
|
<div class="action" data-id="<%- channel.id %>">
|
|
|
- <div class="action-flow">
|
|
|
- <div class="action-block">
|
|
|
+ <div class="action-flow" style="width: 100%;">
|
|
|
+ <div class="action-block" style="width: 50%;">
|
|
|
|
|
|
<%- @Icon('status', channel.status_out + " inline") %> <%- @T('Outbound') %>:<br>
|
|
|
<a class="js-editNotificationOutbound" href="#">
|
|
@@ -204,46 +139,15 @@
|
|
|
<% end %>
|
|
|
|
|
|
</div>
|
|
|
+ <div class="action-block" style="width: 50%;">
|
|
|
+
|
|
|
+ <%- @T('Email Address') %>:
|
|
|
+ <ul class="list">
|
|
|
+ <li class="list-item"><%= @config.notification_sender %>
|
|
|
+ </ul>
|
|
|
+
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<% end %>
|
|
|
<% end %>
|
|
|
-
|
|
|
-<!--
|
|
|
-<% if !_.isEmpty(@notification_channels) && !App.Config.get('system_online_service'): %>
|
|
|
- <table class="table table-hover user-list">
|
|
|
- <thead>
|
|
|
- <tr>
|
|
|
- <th><%- @T('Outbound') %></th>
|
|
|
- </tr>
|
|
|
- </thead>
|
|
|
- <tbody>
|
|
|
- <% for channel in @notification_channels: %>
|
|
|
- <tr data-id="<%- channel.id %>">
|
|
|
- <td class="noTruncate">
|
|
|
- <div class="horizontal">
|
|
|
- <%- @Icon('status', channel.status_out + " inline") %>
|
|
|
- <a class="flex js-editNotificationOutbound" href="#">
|
|
|
- <% if channel.options.outbound && channel.options.outbound.options: %>
|
|
|
- <%= channel.options.outbound.options.user %><br>
|
|
|
- <%= channel.options.outbound.options.host %>
|
|
|
- <% end %>
|
|
|
- (<%= channel.options.outbound.adapter %>)
|
|
|
- </a>
|
|
|
- </div>
|
|
|
- </tr>
|
|
|
- <% if channel.status_in is 'error': %>
|
|
|
- <tr>
|
|
|
- <td colspan="1"><%= channel.last_log_in %></td>
|
|
|
- </tr>
|
|
|
- <% end %>
|
|
|
- <% if channel.status_out is 'error': %>
|
|
|
- <tr>
|
|
|
- <td colspan="1"><%= channel.last_log_out %></td>
|
|
|
- </tr>
|
|
|
- <% end %>
|
|
|
- <% end %>
|
|
|
- </tbody>
|
|
|
- </table>
|
|
|
-<% end %>
|
|
|
--->
|