- <%= f.text_area :sys_notice, class:"form-control", rows: "10", cols: "20",placeholer: "站内信模版" %>
+ <%= f.text_area :sys_notice, class:"form-control", rows: "10", cols: "20",placeholer: "请输入站内信" %>
diff --git a/app/views/admins/message_templates/_list.html.erb b/app/views/admins/message_templates/_list.html.erb
index a5a1a7265..4082735f5 100644
--- a/app/views/admins/message_templates/_list.html.erb
+++ b/app/views/admins/message_templates/_list.html.erb
@@ -2,11 +2,11 @@
@@ -20,7 +20,7 @@
<%= message_template.sys_notice.to_s.truncate(200) %>
- <%= message_template.email.to_s.truncate(200) %>
+ <%= message_template.email.to_s.truncate(100) %>
|
<%= message_template.notification_url.to_s.truncate(200) %>
diff --git a/app/views/admins/message_templates/edit.js.erb b/app/views/admins/message_templates/edit.js.erb
index 789dd286d..5d797af2f 100644
--- a/app/views/admins/message_templates/edit.js.erb
+++ b/app/views/admins/message_templates/edit.js.erb
@@ -1 +1,2 @@
-$("#admins-message-templates-content").html("<%= j render partial: 'admins/message_templates/form', locals:{type: 'update'} %>")
\ No newline at end of file
+$("#admins-message-templates-content").html("<%= j render partial: 'admins/message_templates/form', locals:{type: 'update'} %>")
+createMDEditor('message-template-email-editor', { height: 500, placeholder: '请输入邮件模版' });
diff --git a/db/migrate/20210924021337_add_email_title_to_message_templates.rb b/db/migrate/20210924021337_add_email_title_to_message_templates.rb
new file mode 100644
index 000000000..33d84b243
--- /dev/null
+++ b/db/migrate/20210924021337_add_email_title_to_message_templates.rb
@@ -0,0 +1,5 @@
+class AddEmailTitleToMessageTemplates < ActiveRecord::Migration[5.2]
+ def change
+ add_column :message_templates, :email_title, :string
+ end
+end
diff --git a/public/message_template/issue_assigned.html b/public/message_template/issue_assigned.html
new file mode 100755
index 000000000..8b78dbdaf
--- /dev/null
+++ b/public/message_template/issue_assigned.html
@@ -0,0 +1,52 @@
+
+
+ 有新的易修指派给我
+
+
+
+
+
+
+
+ 
+ 确实让创新更美好
+
+
+
+
+ 如果您在使用中有任何的疑问和建议,欢迎您给我们反馈意见
+ QQ群:1071514693
+ Trustie团队
+
+
+
+
+
+
\ No newline at end of file
diff --git a/public/message_template/organization_joined.html b/public/message_template/organization_joined.html
new file mode 100755
index 000000000..cc0c68ed2
--- /dev/null
+++ b/public/message_template/organization_joined.html
@@ -0,0 +1,52 @@
+
+
+ 加入组织
+
+
+
+
+
+
+
+ 
+ 确实让创新更美好
+
+
+
+
+ 如果您在使用中有任何的疑问和建议,欢迎您给我们反馈意见
+ QQ群:1071514693
+ Trustie团队
+
+
+
+
+
+
\ No newline at end of file
diff --git a/public/message_template/organization_left.html b/public/message_template/organization_left.html
new file mode 100755
index 000000000..5355129fd
--- /dev/null
+++ b/public/message_template/organization_left.html
@@ -0,0 +1,52 @@
+
+
+ 移出组织
+
+
+
+
+
+
+
+ 
+ 确实让创新更美好
+
+
+
+
+ 如果您在使用中有任何的疑问和建议,欢迎您给我们反馈意见
+ QQ群:1071514693
+ Trustie团队
+
+
+
+
+
+
\ No newline at end of file
diff --git a/public/message_template/project_issue.html b/public/message_template/project_issue.html
new file mode 100755
index 000000000..d9999e70c
--- /dev/null
+++ b/public/message_template/project_issue.html
@@ -0,0 +1,52 @@
+
+
+ 管理的仓库有新的易修
+
+
+
+
+
+
+
+ 
+ 确实让创新更美好
+
+
+
+
+ 如果您在使用中有任何的疑问和建议,欢迎您给我们反馈意见
+ QQ群:1071514693
+ Trustie团队
+
+
+
+
+
+
\ No newline at end of file
diff --git a/public/message_template/project_joined.html b/public/message_template/project_joined.html
new file mode 100755
index 000000000..c144da01a
--- /dev/null
+++ b/public/message_template/project_joined.html
@@ -0,0 +1,52 @@
+
+
+ 加入项目
+
+
+
+
+
+
+
+ 
+ 确实让创新更美好
+
+
+
+
+ 如果您在使用中有任何的疑问和建议,欢迎您给我们反馈意见
+ QQ群:1071514693
+ Trustie团队
+
+
+
+
+
+
\ No newline at end of file
diff --git a/public/message_template/project_left.html b/public/message_template/project_left.html
new file mode 100755
index 000000000..5a87e8ba4
--- /dev/null
+++ b/public/message_template/project_left.html
@@ -0,0 +1,52 @@
+
+
+ 移出项目
+
+
+
+
+
+
+
+ 
+ 确实让创新更美好
+
+
+
+
+ 如果您在使用中有任何的疑问和建议,欢迎您给我们反馈意见
+ QQ群:1071514693
+ Trustie团队
+
+
+
+
+
+
\ No newline at end of file
diff --git a/public/message_template/project_member_joined.html b/public/message_template/project_member_joined.html
new file mode 100755
index 000000000..9f376d4f3
--- /dev/null
+++ b/public/message_template/project_member_joined.html
@@ -0,0 +1,52 @@
+
+
+ 管理的仓库有成员变更
+
+
+
+
+
+
+
+ 
+ 确实让创新更美好
+
+
+
+
+ 如果您在使用中有任何的疑问和建议,欢迎您给我们反馈意见
+ QQ群:1071514693
+ Trustie团队
+
+
+
+
+
+
\ No newline at end of file
diff --git a/public/message_template/project_member_left.html b/public/message_template/project_member_left.html
new file mode 100755
index 000000000..f1c6b6d95
--- /dev/null
+++ b/public/message_template/project_member_left.html
@@ -0,0 +1,52 @@
+
+
+ 管理的仓库有成员变更
+
+
+
+
+
+
+
+ 
+ 确实让创新更美好
+
+
+
+
+ 如果您在使用中有任何的疑问和建议,欢迎您给我们反馈意见
+ QQ群:1071514693
+ Trustie团队
+
+
+
+
+
+
\ No newline at end of file
diff --git a/public/message_template/project_pull_request.html b/public/message_template/project_pull_request.html
new file mode 100755
index 000000000..0f75e0b8c
--- /dev/null
+++ b/public/message_template/project_pull_request.html
@@ -0,0 +1,52 @@
+
+
+ 管理的仓库有新的合并请求
+
+
+
+
+
+
+
+ 
+ 确实让创新更美好
+
+
+
+
+ 如果您在使用中有任何的疑问和建议,欢迎您给我们反馈意见
+ QQ群:1071514693
+ Trustie团队
+
+
+
+
+
+
\ No newline at end of file
diff --git a/public/message_template/project_setting_changed.html b/public/message_template/project_setting_changed.html
new file mode 100755
index 000000000..ca51e262c
--- /dev/null
+++ b/public/message_template/project_setting_changed.html
@@ -0,0 +1,58 @@
+
+
+ 管理的仓库设置被更改
+
+
+
+
+
+
+
+ 
+ 确实让创新更美好
+
+
+
+
+ {receiver},您好!
+ {nickname1} 更改 {nickname2}/{repository} 的仓库设置:
+ {ifname}更改项目名称为"{name}"{endname}
+ {ifdescription}更改项目简介为"{description}"{enddescription}
+ {ifcategory}更改项目类别为"{category}"{endcategory}
+ {iflanguage}更改项目语言为"{language}"{endlanguage}
+ {ifpermission}将仓库设为"{permission}"{endpermission}
+ {ifnavbar}将项目导航更改为"{navbar}"{endnavbar}
+
+
+ 
+
+ 扫一扫,关注trustie微信公众号,更方便获取平台动态,消息推送等提醒
+ 想了解更多信息,请访问 www.trustie.net
+
+
+
+ 如果您在使用中有任何的疑问和建议,欢迎您给我们反馈意见
+ QQ群:1071514693
+ Trustie团队
+
+
+
+
+
+
\ No newline at end of file
diff --git a/public/message_template/pull_request_assigned.html b/public/message_template/pull_request_assigned.html
new file mode 100755
index 000000000..3898336e4
--- /dev/null
+++ b/public/message_template/pull_request_assigned.html
@@ -0,0 +1,52 @@
+
+
+ 有新的合并请求指派给我
+
+
+
+
+
+
+
+ 
+ 确实让创新更美好
+
+
+
+
+ 如果您在使用中有任何的疑问和建议,欢迎您给我们反馈意见
+ QQ群:1071514693
+ Trustie团队
+
+
+
+
+
+
\ No newline at end of file
|