Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
refactor: make url in email template more better (#31166)
wangxiaolei9f09414dbeb3
diff --git a/api/templates/invite_member_mail_template_en-US.html b/api/templates/invite_member_mail_template_en-US.htmlindex a07c5f4b169..7b296519f0a 100644--- a/api/templates/invite_member_mail_template_en-US.html+++ b/api/templates/invite_member_mail_template_en-US.html@@ -83,7 +83,30 @@<p class="content1">Dear {{ to }},</p><p class="content2">{{ inviter_name }} is pleased to invite you to join our workspace on Dify, a platform specifically designed for LLM application development. On Dify, you can explore, create, and collaborate to build and operate AI applications.</p><p class="content2">Click the button below to log in to Dify and join the workspace.</p>- <p style="text-align: center; margin: 0; margin-bottom: 32px;"><a style="color: #fff; text-decoration: none" class="button" href="{{ url }}">Login Here</a></p>+ <div style="text-align: center; margin-bottom: 32px;">+ <a href="{{ url }}"+ style="background-color:#2563eb;+ color:#ffffff !important;+ text-decoration:none;+ display:inline-block;+ font-weight:600;+ border-radius:4px;+ font-size:14px;+ line-height:18px;+ font-family: Helvetica, Arial, sans-serif;+ text-align:center;+ border-top: 10px solid #2563eb;+ border-bottom: 10px solid #2563eb;+ border-left: 20px solid #2563eb;+ border-right: 20px solid #2563eb;+ ">Login Here</a>+ <p style="font-size: 12px; color: #666666; margin-top: 20px; margin-bottom: 0;">+ If the button doesn't work, copy and paste this link into your browser:<br>+ <a href="{{ url }}" style="color: #2563eb; text-decoration: underline; word-break: break-all;">+ {{ url }}+ </a>+ </p>+ </div><p class="content2">Best regards,</p><p class="content2">Dify Team</p></div>diff --git a/api/templates/invite_member_mail_template_zh-CN.html b/api/templates/invite_member_mail_template_zh-CN.htmlindex 27709a3c6d0..c05b3ddb67d 100644--- a/api/templates/invite_member_mail_template_zh-CN.html+++ b/api/templates/invite_member_mail_template_zh-CN.html@@ -83,7 +83,30 @@<p class="content1">尊敬的 {{ to }},</p><p class="content2">{{ inviter_name }} 现邀请您加入我们在 Dify 的工作区,这是一个专为 LLM 应用开发而设计的平台。在 Dify 上,您可以探索、创造和合作,构建和运营 AI 应用。</p><p class="content2">点击下方按钮即可登录 Dify 并且加入空间。</p>- <p style="text-align: center; margin: 0; margin-bottom: 32px;"><a style="color: #fff; text-decoration: none" class="button" href="{{ url }}">在此登录</a></p>+ <div style="text-align: center; margin-bottom: 32px;">+ <a href="{{ url }}"+ style="background-color:#2563eb;+ color:#ffffff !important;+ text-decoration:none;+ display:inline-block;+ font-weight:600;+ border-radius:4px;+ font-size:14px;+ line-height:18px;+ font-family: Helvetica, Arial, sans-serif;+ text-align:center;+ border-top: 10px solid #2563eb;+ border-bottom: 10px solid #2563eb;+ border-left: 20px solid #2563eb;+ border-right: 20px solid #2563eb;+ ">在此登录</a>+ <p style="font-size: 12px; color: #666666; margin-top: 20px; margin-bottom: 0;">+ 如果按钮无法使用,请将以下链接复制到浏览器打开:<br>+ <a href="{{ url }}" style="color: #2563eb; text-decoration: underline; word-break: break-all;">+ {{ url }}+ </a>+ </p>+ </div><p class="content2">此致,</p><p class="content2">Dify 团队</p></div>diff --git a/api/templates/register_email_when_account_exist_template_en-US.html b/api/templates/register_email_when_account_exist_template_en-US.htmlindex ac5042c274a..e2bb99c9895 100644--- a/api/templates/register_email_when_account_exist_template_en-US.html+++ b/api/templates/register_email_when_account_exist_template_en-US.html@@ -115,7 +115,30 @@We noticed you tried to sign up, but this email is already registered with an existing account.Please log in here: </p>- <a href="{{ login_url }}" class="button">Log In</a>+ <div style="text-align: center; margin-bottom: 20px;">+ <a href="{{ login_url }}"+ style="background-color:#2563eb;+ color:#ffffff !important;+ text-decoration:none;+ display:inline-block;+ font-weight:600;+ border-radius:4px;+ font-size:14px;+ line-height:18px;+ font-family: Helvetica, Arial, sans-serif;+ text-align:center;+ border-top: 10px solid #2563eb;+ border-bottom: 10px solid #2563eb;+ border-left: 20px solid #2563eb;+ border-right: 20px solid #2563eb;+ ">Log In</a>+ <p style="font-size: 12px; color: #666666; margin-top: 20px; margin-bottom: 0;">+ If the button doesn't work, copy and paste this link into your browser:<br>+ <a href="{{ login_url }}" style="color: #2563eb; text-decoration: underline; word-break: break-all;">+ {{ login_url }}+ </a>+ </p>+ </div><p class="description">If you forgot your password, you can reset it here: <a href="{{ reset_password_url }}"class="reset-btn">Reset Password</a>diff --git a/api/templates/register_email_when_account_exist_template_zh-CN.html b/api/templates/register_email_when_account_exist_template_zh-CN.htmlindex 326b58343a3..6a5bbd135b4 100644--- a/api/templates/register_email_when_account_exist_template_zh-CN.html+++ b/api/templates/register_email_when_account_exist_template_zh-CN.html@@ -115,7 +115,30 @@我们注意到您尝试注册,但此电子邮件已注册。请在此登录: </p>- <a href="{{ login_url }}" class="button">登录</a>+ <div style="text-align: center; margin-bottom: 20px;">+ <a href="{{ login_url }}"+ style="background-color:#2563eb;+ color:#ffffff !important;+ text-decoration:none;+ display:inline-block;+ font-weight:600;+ border-radius:4px;+ font-size:14px;+ line-height:18px;+ font-family: Helvetica, Arial, sans-serif;+ text-align:center;+ border-top: 10px solid #2563eb;+ border-bottom: 10px solid #2563eb;+ border-left: 20px solid #2563eb;+ border-right: 20px solid #2563eb;+ ">登录</a>+ <p style="font-size: 12px; color: #666666; margin-top: 20px; margin-bottom: 0;">+ 如果按钮无法使用,请将以下链接复制到浏览器打开:<br>+ <a href="{{ login_url }}" style="color: #2563eb; text-decoration: underline; word-break: break-all;">+ {{ login_url }}+ </a>+ </p>+ </div><p class="description">如果您忘记了密码,可以在此重置: <a href="{{ reset_password_url }}" class="reset-btn">重置密码</a></p>diff --git a/api/templates/without-brand/invite_member_mail_template_en-US.html b/api/templates/without-brand/invite_member_mail_template_en-US.htmlindex f9157284fac..687ece617a0 100644--- a/api/templates/without-brand/invite_member_mail_template_en-US.html+++ b/api/templates/without-brand/invite_member_mail_template_en-US.html@@ -92,12 +92,34 @@platform specifically designed for LLM application development. On {{application_title}}, you can explore,create, and collaborate to build and operate AI applications.</p><p class="content2">Click the button below to log in to {{application_title}} and join the workspace.</p>- <p style="text-align: center; margin: 0; margin-bottom: 32px;"><a style="color: #fff; text-decoration: none"- class="button" href="{{ url }}">Login Here</a></p>+ <div style="text-align: center; margin-bottom: 32px;">+ <a href="{{ url }}"+ style="background-color:#2563eb;+ color:#ffffff !important;+ text-decoration:none;+ display:inline-block;+ font-weight:600;+ border-radius:4px;+ font-size:14px;+ line-height:18px;+ font-family: Helvetica, Arial, sans-serif;+ text-align:center;+ border-top: 10px solid #2563eb;+ border-bottom: 10px solid #2563eb;+ border-left: 20px solid #2563eb;+ border-right: 20px solid #2563eb;+ ">Login Here</a>+ <p style="font-size: 12px; color: #666666; margin-top: 20px; margin-bottom: 0;">+ If the button doesn't work, copy and paste this link into your browser:<br>+ <a href="{{ url }}" style="color: #2563eb; text-decoration: underline; word-break: break-all;">+ {{ url }}+ </a>+ </p>+ </div><p class="content2">Best regards,</p><p class="content2">{{application_title}} Team</p></div></div></body>-</html>\ No newline at end of file+</html>diff --git a/api/templates/without-brand/invite_member_mail_template_zh-CN.html b/api/templates/without-brand/invite_member_mail_template_zh-CN.htmlindex e787c90914c..9ca1ef62cd2 100644--- a/api/templates/without-brand/invite_member_mail_template_zh-CN.html+++ b/api/templates/without-brand/invite_member_mail_template_zh-CN.html@@ -81,7 +81,30 @@<p class="content1">尊敬的 {{ to }},</p><p class="content2">{{ inviter_name }} 现邀请您加入我们在 {{application_title}} 的工作区,这是一个专为 LLM 应用开发而设计的平台。在 {{application_title}} 上,您可以探索、创造和合作,构建和运营 AI 应用。</p><p class="content2">点击下方按钮即可登录 {{application_title}} 并且加入空间。</p>- <p style="text-align: center; margin: 0; margin-bottom: 32px;"><a style="color: #fff; text-decoration: none" class="button" href="{{ url }}">在此登录</a></p>+ <div style="text-align: center; margin-bottom: 32px;">+ <a href="{{ url }}"+ style="background-color:#2563eb;+ color:#ffffff !important;+ text-decoration:none;+ display:inline-block;+ font-weight:600;+ border-radius:4px;+ font-size:14px;+ line-height:18px;+ font-family: Helvetica, Arial, sans-serif;+ text-align:center;+ border-top: 10px solid #2563eb;+ border-bottom: 10px solid #2563eb;+ border-left: 20px solid #2563eb;+ border-right: 20px solid #2563eb;+ ">在此登录</a>+ <p style="font-size: 12px; color: #666666; margin-top: 20px; margin-bottom: 0;">+ 如果按钮无法使用,请将以下链接复制到浏览器打开:<br>+ <a href="{{ url }}" style="color: #2563eb; text-decoration: underline; word-break: break-all;">+ {{ url }}+ </a>+ </p>+ </div><p class="content2">此致,</p><p class="content2">{{application_title}} 团队</p></div>diff --git a/api/templates/without-brand/register_email_when_account_exist_template_en-US.html b/api/templates/without-brand/register_email_when_account_exist_template_en-US.htmlindex 2e74956e140..2a26aac5b9b 100644--- a/api/templates/without-brand/register_email_when_account_exist_template_en-US.html+++ b/api/templates/without-brand/register_email_when_account_exist_template_en-US.html@@ -111,7 +111,30 @@We noticed you tried to sign up, but this email is already registered with an existing account.Please log in here: </p>- <a href="{{ login_url }}" class="button">Log In</a>+ <div style="text-align: center; margin-bottom: 20px;">+ <a href="{{ login_url }}"+ style="background-color:#2563eb;+ color:#ffffff !important;+ text-decoration:none;+ display:inline-block;+ font-weight:600;+ border-radius:4px;+ font-size:14px;+ line-height:18px;+ font-family: Helvetica, Arial, sans-serif;+ text-align:center;+ border-top: 10px solid #2563eb;+ border-bottom: 10px solid #2563eb;+ border-left: 20px solid #2563eb;+ border-right: 20px solid #2563eb;+ ">Log In</a>+ <p style="font-size: 12px; color: #666666; margin-top: 20px; margin-bottom: 0;">+ If the button doesn't work, copy and paste this link into your browser:<br>+ <a href="{{ login_url }}" style="color: #2563eb; text-decoration: underline; word-break: break-all;">+ {{ login_url }}+ </a>+ </p>+ </div><p class="description">If you forgot your password, you can reset it here: <a href="{{ reset_password_url }}"class="reset-btn">Reset Password</a>diff --git a/api/templates/without-brand/register_email_when_account_exist_template_zh-CN.html b/api/templates/without-brand/register_email_when_account_exist_template_zh-CN.htmlindex a315f9154de..b9f93eb0fc5 100644--- a/api/templates/without-brand/register_email_when_account_exist_template_zh-CN.html+++ b/api/templates/without-brand/register_email_when_account_exist_template_zh-CN.html@@ -111,7 +111,30 @@我们注意到您尝试注册,但此电子邮件已注册。请在此登录: </p>- <a href="{{ login_url }}" class="button">登录</a>+ <div style="text-align: center; margin-bottom: 20px;">+ <a href="{{ login_url }}"+ style="background-color:#2563eb;+ color:#ffffff !important;+ text-decoration:none;+ display:inline-block;+ font-weight:600;+ border-radius:4px;+ font-size:14px;+ line-height:18px;+ font-family: Helvetica, Arial, sans-serif;+ text-align:center;+ border-top: 10px solid #2563eb;+ border-bottom: 10px solid #2563eb;+ border-left: 20px solid #2563eb;+ border-right: 20px solid #2563eb;+ ">登录</a>+ <p style="font-size: 12px; color: #666666; margin-top: 20px; margin-bottom: 0;">+ 如果按钮无法使用,请将以下链接复制到浏览器打开:<br>+ <a href="{{ login_url }}" style="color: #2563eb; text-decoration: underline; word-break: break-all;">+ {{ login_url }}+ </a>+ </p>+ </div><p class="description">如果您忘记了密码,可以在此重置: <a href="{{ reset_password_url }}" class="reset-btn">重置密码</a></p>