مراية لـ
https://github.com/postalserver/postal.git
تم المزامنة 2025-12-01 05:43:04 +00:00
initial commit from appmail
هذا الالتزام موجود في:
50
app/views/track_domains/_form.html.haml
Normal file
50
app/views/track_domains/_form.html.haml
Normal file
@@ -0,0 +1,50 @@
|
||||
= form_for [organization, @server, @track_domain], :remote => true do |f|
|
||||
= f.error_messages
|
||||
%fieldset.fieldSet
|
||||
.fieldSet__field
|
||||
= f.label :name, "Domain", :class => 'fieldSet__label'
|
||||
.fieldSet__input
|
||||
.routeNameInput
|
||||
= f.text_field :name, :autofocus => true, :class => 'input input--text routeNameInput__name', :disabled => @track_domain.persisted?
|
||||
%span.routeNameInput__at .
|
||||
= f.select :domain_id, domain_options_for_select(@server, @track_domain.domain), {}, :class => 'input input--select routeNameInput__domain', :disabled => @track_domain.persisted?
|
||||
%p.fieldSet__text
|
||||
This is the domain that requests for tracked links will be directed through when you use click tracking. We recommend using something like
|
||||
<b>click.yourdomain.com</b>. You will need to a CNAME record to point to <b>#{Postal.config.dns.track_domain}</b> for this once you've added it.
|
||||
|
||||
.fieldSet__field
|
||||
= f.label :ssl_enabled, :class => 'fieldSet__label'
|
||||
.fieldSet__input
|
||||
= f.select :ssl_enabled, [["Yes - use SSL for tracking whenever possible", true], ["No - never use SSL for tracking", false]], {}, :class => 'input input--select'
|
||||
%p.fieldSet__text
|
||||
If enabled, we'll try to remove the replies/signatures from the plain body and send them seperately to the rest of the body.
|
||||
This is useful if you just want to see the latest message in a thread.
|
||||
|
||||
.fieldSet__field
|
||||
= f.label :track_loads, :class => 'fieldSet__label'
|
||||
.fieldSet__input
|
||||
= f.select :track_loads, [["Yes - track when HTML e-mails are opened", true], ["No - don't track when HTML e-mails are opened", false]], {}, :class => 'input input--select'
|
||||
%p.fieldSet__text
|
||||
If enabled, we'll insert a 1px image into the footer of any HTML e-mails. When this image is loaded, we'll log
|
||||
this as a view and notify you with a webhook.
|
||||
|
||||
.fieldSet__field
|
||||
= f.label :track_clicks, :class => 'fieldSet__label'
|
||||
.fieldSet__input
|
||||
= f.select :track_clicks, [["Yes - track when links are clicked", true], ["No - don't track when links are clicked", false]], {}, :class => 'input input--select'
|
||||
%p.fieldSet__text
|
||||
If enabled, we'll rewrite URLs in your outbound messages to go via this domain. You'll receive a webhook when
|
||||
someone clicks one of your links and it will be displayed in the web interface.
|
||||
|
||||
.fieldSet__field
|
||||
= f.label :excluded_click_domains, "Domains excluded from tracking", :class => 'fieldSet__label'
|
||||
.fieldSet__input
|
||||
~ f.text_area :excluded_click_domains, :class => 'input input--smallArea'
|
||||
%p.fieldSet__text
|
||||
This is a list of domains of links that you don't wish to be tracked. When click tracking is enabled,
|
||||
you can provide a list (one domain per line) for links that you don't wish to be tracked.
|
||||
|
||||
|
||||
.fieldSetSubmit.buttonSet
|
||||
= f.submit @track_domain.new_record? ? "Create Track Domain" : "Save Track Domain", :class => 'button button--positive js-form-submit'
|
||||
|
||||
9
app/views/track_domains/edit.html.haml
Normal file
9
app/views/track_domains/edit.html.haml
Normal file
@@ -0,0 +1,9 @@
|
||||
- page_title << @server.name
|
||||
- page_title << "Tracking Domains"
|
||||
- page_title << "Edit Tracking Domain Setting"
|
||||
|
||||
= render 'servers/sidebar', :active_server => @server
|
||||
= render 'servers/header', :active_nav => :domains
|
||||
= render 'domains/nav', :active_nav => :track_domains
|
||||
.pageContent.pageContent--compact
|
||||
= render 'form'
|
||||
47
app/views/track_domains/index.html.haml
Normal file
47
app/views/track_domains/index.html.haml
Normal file
@@ -0,0 +1,47 @@
|
||||
- page_title << @server.name
|
||||
- page_title << "Tracking Domains"
|
||||
|
||||
= render 'servers/sidebar', :active_server => @server
|
||||
= render 'servers/header', :active_nav => :domains
|
||||
= render 'domains/nav', :active_nav => :track_domains
|
||||
|
||||
.pageContent.pageContent--compact
|
||||
|
||||
- if @track_domains.empty?
|
||||
.noData.noData--fox.noData--clean
|
||||
%h2.noData__title You haven't set up any tracking domains yet.
|
||||
%p.noData__text
|
||||
To use Postal's open & click tracking, you need to configure a domain that links will be re-written to use. Enable
|
||||
message tracking by adding a sutiable tracking domain for your outbound e-mails.
|
||||
%p.noData__button= link_to "Add a custom tracking domain", [:new, organization, @server, :track_domain], :class => "button button--positive"
|
||||
|
||||
- else
|
||||
%ul.domainList.u-margin
|
||||
- for track_domain in @track_domains
|
||||
%li.domainList__item
|
||||
.domainList__details
|
||||
%p.domainList__name
|
||||
= link_to track_domain.full_name, [:edit, organization, @server, track_domain]
|
||||
%ul.domainList__checks
|
||||
- if track_domain.dns_status == 'OK'
|
||||
%li.domainList__check.domainList__check--ok CNAME configured correctly
|
||||
- elsif track_domain.dns_status.nil?
|
||||
%li.domainList__check.domainList__check--neutral-cross CNAME/DNS not checked yet
|
||||
- else
|
||||
%li.domainList__check.domainList__check--warning{:title => track_domain.dns_error} CNAME not configured correctly
|
||||
|
||||
- if track_domain.ssl_enabled?
|
||||
- if track_domain.has_ssl?
|
||||
%li.domainList__check.domainList__check--ok= link_to "SSL enabled", [:toggle_ssl, organization, @server, track_domain], :remote => true, :method => :post
|
||||
- else
|
||||
%li.domainList__check.domainList__check--neutral= link_to "SSL setup in progress", [:toggle_ssl, organization, @server, track_domain], :remote => true, :method => :post
|
||||
- else
|
||||
%li.domainList__check.domainList__check--neutral-cross= link_to "SSL disabled", [:toggle_ssl, organization, @server, track_domain], :remote => true, :method => :post
|
||||
|
||||
%ul.domainList__properties
|
||||
%li.domainList__links
|
||||
= link_to "Settings", [:edit, organization, @server, track_domain]
|
||||
= link_to "Check DNS", [:check, organization, @server, track_domain], :remote => true, :method => :post, :data => {:disable_with => "Checking..."}
|
||||
= link_to "Delete", [organization, @server, track_domain], :remote => true, :method => :delete, :data => {:confirm => "Are you sure you wish to remove this domain?", :disable_with => "Deleting..."}, :class => 'domainList__delete'
|
||||
|
||||
%p.u-center= link_to "Add new track domain", [:new, organization, @server, :track_domain], :class => "button button--positive"
|
||||
9
app/views/track_domains/new.html.haml
Normal file
9
app/views/track_domains/new.html.haml
Normal file
@@ -0,0 +1,9 @@
|
||||
- page_title << @server.name
|
||||
- page_title << "Tracking Domains"
|
||||
- page_title << "New Tracking Domain"
|
||||
|
||||
= render 'servers/sidebar', :active_server => @server
|
||||
= render 'servers/header', :active_nav => :domains
|
||||
= render 'domains/nav', :active_nav => :track_domains
|
||||
.pageContent.pageContent--compact
|
||||
= render 'form'
|
||||
المرجع في مشكلة جديدة
حظر مستخدم