diff --git a/material/base.html b/material/base.html index 8ffdf5b7232..d08336df25d 100644 --- a/material/base.html +++ b/material/base.html @@ -127,10 +127,16 @@
- {% if config.extra.pull_request_preview %} + {% if config.extra.preview_pull_request or config.extra.preview_branch %}
-
This documentation is a preview of the pull request - #{{ config.extra.pull_request_preview }} +
+ {% if config.extra.preview_pull_request %} + This documentation is a preview of the pull request + #{{ config.extra.preview_pull_request }} + {% else %} + This documentation is a preview of the branch + {{ config.extra.preview_branch }} + {% endif %}

For the latest updates and improvements in production, diff --git a/src/base.html b/src/base.html index eab16cd0137..6b6fca07bab 100644 --- a/src/base.html +++ b/src/base.html @@ -289,10 +289,16 @@

- {% if config.extra.pull_request_preview %} + {% if config.extra.preview_pull_request or config.extra.preview_branch %}
-
This documentation is a preview of the pull request - #{{ config.extra.pull_request_preview }} +
+ {% if config.extra.preview_pull_request %} + This documentation is a preview of the pull request + #{{ config.extra.preview_pull_request }} + {% else %} + This documentation is a preview of the branch + {{ config.extra.preview_branch }} + {% endif %}

For the latest updates and improvements in production,