diff --git a/cloudflare_error_page/templates/error.html b/cloudflare_error_page/templates/error.html index fe4bf59..3e6dcf4 100644 --- a/cloudflare_error_page/templates/error.html +++ b/cloudflare_error_page/templates/error.html @@ -67,7 +67,8 @@ {{item.location or default_location}} -

{{item.name or default_name}}

+ {% set _name_style = 'style="color: #2f7bbf;"' if ((item.name or default_name) == 'Cloudflare') else '' %} +

{{item.name or default_name}}

{{status_text}} {% endfor %} diff --git a/editor/resources/template.ejs b/editor/resources/template.ejs index 57ca903..cef9ad4 100644 --- a/editor/resources/template.ejs +++ b/editor/resources/template.ejs @@ -76,7 +76,15 @@ let html_title_output = params.html_title || (error_code + ': ' + title); <%= item.location || default_location %> -

<%= item.name || default_name %>

+ <% + let _name_style; + if ((item.name || default_name) === 'Cloudflare') { + _name_style = 'style="color: #2f7bbf;"' + } else{ + _name_style = '' + } + %> +

><%= item.name || default_name %>

<%= status_text %> <% } %>