مراية لـ
https://github.com/postalserver/postal.git
تم المزامنة 2025-11-30 21:32:30 +00:00
hide away IP pool things in the UI if not enabled
هذا الالتزام موجود في:
@@ -39,7 +39,7 @@
|
||||
%li.siteHeader__subMenuItem= link_to "Switch organization", root_path, :class => 'siteHeader__subMenuLink'
|
||||
%li.siteHeader__navItem.siteHeader__navItem--user= current_user.name
|
||||
%li.siteHeader__navItem= link_to "My Settings", settings_path, :class => 'sideHeader__navItemLink'
|
||||
- if current_user.admin?
|
||||
- if current_user.admin? && Postal.ip_pools?
|
||||
%li.siteHeader__navItem= link_to "IP Pools", ip_pools_path, :class => 'sideHeader__navItemLink'
|
||||
%li.siteHeader__navItem= link_to "Logout", logout_path, :method => :delete, :class => 'sideHeader__navItemLink'
|
||||
|
||||
|
||||
@@ -21,12 +21,13 @@
|
||||
outgoing & incoming mail will be held and only visible in the web interface and will not be
|
||||
sent to any recipients or HTTP endpoints.
|
||||
|
||||
.fieldSet__field
|
||||
= f.label :ip_pool_id, :class => 'fieldSet__label'
|
||||
.fieldSet__input
|
||||
= f.collection_select :ip_pool_id, organization.ip_pools.includes(:ip_addresses).order("`default` desc, name asc"), :id, :description, {}, :class => 'input input--select'
|
||||
%p.fieldSet__text
|
||||
This is the set of IP addresses which outbound e-mails will be delivered from.
|
||||
- if Postal.ip_pools?
|
||||
.fieldSet__field
|
||||
= f.label :ip_pool_id, :class => 'fieldSet__label'
|
||||
.fieldSet__input
|
||||
= f.collection_select :ip_pool_id, organization.ip_pools.includes(:ip_addresses).order("`default` desc, name asc"), :id, :description, {}, :class => 'input input--select'
|
||||
%p.fieldSet__text
|
||||
This is the set of IP addresses which outbound e-mails will be delivered from.
|
||||
|
||||
- if @server.persisted?
|
||||
.fieldSet__field
|
||||
|
||||
@@ -14,7 +14,8 @@
|
||||
%li.serverHeader__list--warning= link_to "#{pluralize bad_dns, 'domain'} has misconfigured DNS records", [organization, @server, :domains]
|
||||
- if unverified > 0
|
||||
%li= link_to "#{pluralize unverified, 'domain'} is awaiting verification", [organization, @server, :domains]
|
||||
%li Sending via #{@server.ip_pool.name}
|
||||
- if Postal.ip_pools?
|
||||
%li Sending via #{@server.ip_pool.name}
|
||||
|
||||
.serverHeader__stats{"data-turbolinks-permanent" => true, :id => "serverStats-#{@server.uuid}"}
|
||||
%ul.serverHeader__statsList
|
||||
|
||||
المرجع في مشكلة جديدة
حظر مستخدم