Merge pull request #6625 from rxu/ticket/17324

[ticket/17324] Add template event to notification_dropdown.html
This commit is contained in:
Marc Alexander 2024-05-29 21:42:46 +02:00 committed by GitHub
commit e328ee96d2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 17 additions and 1 deletions

View file

@ -1597,6 +1597,20 @@ navbar_header_username_prepend
* Since: 3.1.0-RC1 * Since: 3.1.0-RC1
* Purpose: Add text and HTMl before the username shown in the navbar. * Purpose: Add text and HTMl before the username shown in the navbar.
notification_dropdown_footer_after
===
* Locations:
+ styles/prosilver/template/notification_dropdown.html
* Since: 3.3.12-prep-release
* Purpose: Add content after notifications list footer.
notification_dropdown_footer_before
===
* Locations:
+ styles/prosilver/template/notification_dropdown.html
* Since: 3.3.12-prep-release
* Purpose: Add content before notifications list footer.
overall_footer_after overall_footer_after
=== ===
* Locations: * Locations:

View file

@ -489,7 +489,7 @@ class md_exporter
*/ */
public function validate_version($version) public function validate_version($version)
{ {
return preg_match('#^\d+\.\d+\.\d+(?:-(?:a|b|RC|pl)\d+)?$#', $version); return preg_match('#^\d+\.\d+\.\d+(?:-(?:a|b|RC|pl)\d+|(?:-prep-release))?$#', $version);
} }
/** /**

View file

@ -40,8 +40,10 @@
<!-- END notifications --> <!-- END notifications -->
</ul> </ul>
{% EVENT notification_dropdown_footer_before %}
<div class="footer"> <div class="footer">
<a href="{U_VIEW_ALL_NOTIFICATIONS}"><span>{L_SEE_ALL}</span></a> <a href="{U_VIEW_ALL_NOTIFICATIONS}"><span>{L_SEE_ALL}</span></a>
</div> </div>
{% EVENT notification_dropdown_footer_after %}
</div> </div>
</div> </div>