|
@@ -1,6 +1,6 @@
|
|
|
<h1><%- @T('Email Accounts') %></h1>
|
|
|
|
|
|
-<% if @accounts_fixed: %>
|
|
|
+<% if !_.isEmpty(@accounts_fixed): %>
|
|
|
<h2><%- @T('Fixed email addresses') %></h2>
|
|
|
<ul>
|
|
|
<% for email_address in @accounts_fixed: %>
|
|
@@ -9,16 +9,16 @@
|
|
|
</ul>
|
|
|
<% end %>
|
|
|
|
|
|
-<% if !_.isEmpty(@email_addresses_not_used): %>
|
|
|
+<% if !_.isEmpty(@not_used_email_addresses): %>
|
|
|
<h2><%- @T('Not linked email addresses') %></h2>
|
|
|
<ul>
|
|
|
-<% for email_address in @email_addresses_not_used: %>
|
|
|
+<% for email_address in @not_used_email_addresses: %>
|
|
|
<li data-id="<%= email_address.id %>"><a href="" data-type="email-address-edit"><%= email_address.email %></a>
|
|
|
<% end %>
|
|
|
</ul>
|
|
|
<% end %>
|
|
|
|
|
|
-<% if _.isEmpty(@channels): %>
|
|
|
+<% if _.isEmpty(@account_channels): %>
|
|
|
<p><%- @T('You have no configured account right now.') %></p>
|
|
|
<% else: %>
|
|
|
<table class="table table-hover user-list">
|
|
@@ -31,7 +31,7 @@
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
- <% for channel in @channels: %>
|
|
|
+ <% for channel in @account_channels: %>
|
|
|
<tr data-id="<%- channel.id %>">
|
|
|
<td class="<% if channel.status_in is 'ok': %>success<% else if channel.status_in is 'error': %>danger<% else: %>warning<% end %>">
|
|
|
<%- @T('State') %>: <%- @T(channel.status_in || 'unknown') %><br>
|
|
@@ -82,7 +82,7 @@
|
|
|
|
|
|
<a data-type="new" class="btn btn--success"><%- @T('New') %></a>
|
|
|
|
|
|
-<% if @channel && !App.Config.get('system_online_service'): %>
|
|
|
+<% if !_.isEmpty(@notification_channels) && !App.Config.get('system_online_service'): %>
|
|
|
<h1><%- @T('Notification Account') %></h1>
|
|
|
|
|
|
<table class="table table-hover user-list">
|
|
@@ -92,25 +92,26 @@
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
- <tr data-id="<%- @channel.id %>">
|
|
|
- <td class="<% if @channel.status_out is 'ok': %>success<% else if @channel.status_out is 'error': %>danger<% else: %>warning<% end %>">
|
|
|
- <%- @T('State') %>: <%- @T(@channel.status_out || 'unknown') %><br>
|
|
|
+ <% for channel in @notification_channels: %>
|
|
|
+ <tr data-id="<%- channel.id %>">
|
|
|
+ <td class="<% if channel.status_out is 'ok': %>success<% else if channel.status_out is 'error': %>danger<% else: %>warning<% end %>">
|
|
|
+ <%- @T('State') %>: <%- @T(channel.status_out || 'unknown') %><br>
|
|
|
<a href="#" data-type="edit-notification-outbound">
|
|
|
- <% if @channel.options.outbound && @channel.options.outbound.options: %>
|
|
|
- <%= @channel.options.outbound.options.user %><br>
|
|
|
- <%= @channel.options.outbound.options.host %>
|
|
|
+ <% 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>
|
|
|
+ (<%= channel.options.outbound.adapter %>)</a>
|
|
|
</td>
|
|
|
</tr>
|
|
|
- <% if @channel.status_in is 'error': %>
|
|
|
+ <% if channel.status_in is 'error': %>
|
|
|
<tr>
|
|
|
- <td colspan="1"><%= @channel.last_log_in %></td>
|
|
|
+ <td colspan="1"><%= channel.last_log_in %></td>
|
|
|
</tr>
|
|
|
<% end %>
|
|
|
- <% if @channel.status_out is 'error': %>
|
|
|
+ <% if channel.status_out is 'error': %>
|
|
|
<tr>
|
|
|
- <td colspan="1"><%= @channel.last_log_out %></td>
|
|
|
+ <td colspan="1"><%= channel.last_log_out %></td>
|
|
|
</tr>
|
|
|
<% end %>
|
|
|
</tbody>
|