Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
apollo
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openSource
apollo
Commits
baba0b56
Commit
baba0b56
authored
Dec 20, 2016
by
Jason Song
Committed by
GitHub
Dec 20, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #492 from lepdou/1220
bugfix: email template placeholder has conflict with spring placeholder
parents
1a9b1318
3b91d512
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
18 deletions
+18
-18
PortalConfig.java
...amework/apollo/portal/components/config/PortalConfig.java
+2
-2
ConfigPublishEmailBuilder.java
...al/components/emailbuilder/ConfigPublishEmailBuilder.java
+13
-13
namespace-panel-master-tab.html
...es/static/views/component/namespace-panel-master-tab.html
+3
-3
No files found.
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/components/config/PortalConfig.java
View file @
baba0b56
...
...
@@ -110,11 +110,11 @@ public class PortalConfig extends RefreshableConfig {
}
public
String
publishEmailBodyTemplate
()
{
return
getValue
(
"email.template.release"
,
""
);
return
getValue
(
"email.template.release
.v2
"
,
""
);
}
public
String
rollbackEmailBodyTemplate
()
{
return
getValue
(
"email.template.rollback"
,
""
);
return
getValue
(
"email.template.rollback
.v2
"
,
""
);
}
/***
...
...
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/components/emailbuilder/ConfigPublishEmailBuilder.java
View file @
baba0b56
...
...
@@ -36,21 +36,21 @@ import java.util.regex.Matcher;
public
abstract
class
ConfigPublishEmailBuilder
{
//email content common field placeholder
private
static
final
String
EMAIL_CONTENT_FIELD_APPID
=
"
\\$
\\{appId\\}"
;
private
static
final
String
EMAIL_CONTENT_FIELD_ENV
=
"
\\$
\\{env}"
;
private
static
final
String
EMAIL_CONTENT_FIELD_CLUSTER
=
"
\\$
\\{clusterName}"
;
private
static
final
String
EMAIL_CONTENT_FIELD_NAMESPACE
=
"
\\$
\\{namespaceName}"
;
private
static
final
String
EMAIL_CONTENT_FIELD_OPERATOR
=
"
\\$
\\{operator}"
;
private
static
final
String
EMAIL_CONTENT_FIELD_RELEASE_TIME
=
"
\\$
\\{releaseTime}"
;
private
static
final
String
EMAIL_CONTENT_FIELD_RELEASE_ID
=
"
\\$
\\{releaseId}"
;
private
static
final
String
EMAIL_CONTENT_FIELD_RELEASE_HISTORY_ID
=
"
\\$
\\{releaseHistoryId}"
;
private
static
final
String
EMAIL_CONTENT_FIELD_RELEASE_TITLE
=
"
\\$
\\{releaseTitle}"
;
private
static
final
String
EMAIL_CONTENT_FIELD_RELEASE_COMMENT
=
"
\\$
\\{releaseComment}"
;
private
static
final
String
EMAIL_CONTENT_FIELD_APOLLO_SERVER_ADDRESS
=
"
\\$
\\{apollo.portal.address}"
;
private
static
final
String
EMAIL_CONTENT_FIELD_DIFF
=
"
\\$
\\{diff}"
;
private
static
final
String
EMAIL_CONTENT_FIELD_APPID
=
"
#
\\{appId\\}"
;
private
static
final
String
EMAIL_CONTENT_FIELD_ENV
=
"
#
\\{env}"
;
private
static
final
String
EMAIL_CONTENT_FIELD_CLUSTER
=
"
#
\\{clusterName}"
;
private
static
final
String
EMAIL_CONTENT_FIELD_NAMESPACE
=
"
#
\\{namespaceName}"
;
private
static
final
String
EMAIL_CONTENT_FIELD_OPERATOR
=
"
#
\\{operator}"
;
private
static
final
String
EMAIL_CONTENT_FIELD_RELEASE_TIME
=
"
#
\\{releaseTime}"
;
private
static
final
String
EMAIL_CONTENT_FIELD_RELEASE_ID
=
"
#
\\{releaseId}"
;
private
static
final
String
EMAIL_CONTENT_FIELD_RELEASE_HISTORY_ID
=
"
#
\\{releaseHistoryId}"
;
private
static
final
String
EMAIL_CONTENT_FIELD_RELEASE_TITLE
=
"
#
\\{releaseTitle}"
;
private
static
final
String
EMAIL_CONTENT_FIELD_RELEASE_COMMENT
=
"
#
\\{releaseComment}"
;
private
static
final
String
EMAIL_CONTENT_FIELD_APOLLO_SERVER_ADDRESS
=
"
#
\\{apollo.portal.address}"
;
private
static
final
String
EMAIL_CONTENT_FIELD_DIFF
=
"
#
\\{diff}"
;
//email content special field placeholder
protected
static
final
String
EMAIL_CONTENT_FIELD_RULE
=
"
\\$
\\{rules}"
;
protected
static
final
String
EMAIL_CONTENT_FIELD_RULE
=
"
#
\\{rules}"
;
//email content module switch
private
static
final
String
EMAIL_CONTENT_DIFF_HAS_CONTENT_SWITCH
=
"diff-hidden"
;
...
...
apollo-portal/src/main/resources/static/views/component/namespace-panel-master-tab.html
View file @
baba0b56
...
...
@@ -163,7 +163,7 @@
<!--table view-->
<div
class=
"namespace-view-table"
ng-show=
"namespace.viewType == 'table'"
>
<div
class=
"well well-sm no-radius text-center"
ng-show=
"!namespace.latestRelease"
>
<div
class=
"well well-sm no-radius text-center"
ng-show=
"!namespace.
isLinkedNamespace && !namespace.
latestRelease"
>
<span
style=
"color: red"
>
Tips: 此namespace从来没有发布过,Apollo客户端将获取不到配置并记录404日志信息,请及时发布。
</span>
</div>
<!--not link namespace-->
...
...
@@ -510,10 +510,10 @@
</th>
<th>
Old Value
已发布的值
</th>
<th>
New Value
未发布的值
</th>
<th>
备注
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment