Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Changelog
- Enh #464: Conversation entry buttons visible on hovering the entry by CSS instead of JS
- Fix #465: Extra right scrollbar
- Enh #466: Convert swagger docs to OpenAPI 3.0
- Fix #469: In mail notifications, use core button for "Reply now", to allow auto-contrast

3.3.5 (September 30, 2025)
--------------------------
Expand Down
23 changes: 8 additions & 15 deletions views/emails/NewMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
use humhub\modules\mail\models\MessageEntry;
use humhub\modules\ui\mail\DefaultMailStyle;
use humhub\modules\user\models\User;
use humhub\widgets\mails\MailButton;
use humhub\widgets\mails\MailButtonList;

/* @var $this View */
/* @var $user User */
Expand Down Expand Up @@ -155,21 +157,12 @@
<!--end space height -->
<tr>
<td valign="top" width="auto" align="center">
<!-- start button -->
<table border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="auto" align="center" valign="middle" height="32" style=" background-color:<?= $this->theme->variable('primary'); ?>; border-radius:5px; background-clip: padding-box;font-size:14px; font-family: <?= Yii::$app->view->theme->variable('mail-font-family', DefaultMailStyle::DEFAULT_FONT_FAMILY) ?>; text-align:center; color: <?= $this->theme->variable('text-color-contrast') ?>; font-weight: 600; padding: 5px 30px">

<span style="color: <?= $this->theme->variable('text-color-contrast') ?>; font-weight: 300;">
<a href="<?= Url::toMessenger($message, true) ?>" style="text-decoration: none; color: <?= $this->theme->variable('text-color-contrast') ?>; font-weight: 300;">
<strong><?= Yii::t('MailModule.base', 'Reply now'); ?></strong>
</a>
</span>
</td>

</tr>
</table>
<!-- end button -->
<?= MailButtonList::widget(['buttons' => [
MailButton::widget([
'url' => Url::toMessenger($message, true),
'text' => Yii::t('MailModule.base', 'Reply now'),
]),
]]) ?>
</td>

</tr>
Expand Down