Skip to content

Commit 9d5ca92

Browse files
committed
Merge branch 'main' into release/4
2 parents 6d4ac16 + 1103a50 commit 9d5ca92

7 files changed

Lines changed: 31 additions & 18 deletions

File tree

azure-pipelines.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,10 @@ stages:
8181
testResultsFiles: '**/test-*.xml'
8282
testRunTitle: 'Publish test results for Python $(python.version)'
8383

84-
- task: PublishCodeCoverageResults@1
84+
- task: PublishCodeCoverageResults@2
8585
displayName: 'Publish code coverage report'
8686
condition: succeededOrFailed()
8787
inputs:
88-
codeCoverageTool: Cobertura
8988
summaryFileLocation: '$(System.DefaultWorkingDirectory)/coverage.xml'
9089

9190

ci/compare-codecov.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ foreach ($cov in $mainCoverageJson.coverageData.coverageStats) {
6868

6969

7070
# Get current code coverage from coverage.xml file.
71-
$coveragePath = Get-ChildItem -Recurse -Filter "coverage.xml" $wd
71+
# Use the first one, if there are multiple i.e. from multiple runs.
72+
$coveragePath = (Get-ChildItem -Recurse -Filter "coverage.xml" $wd)[0]
7273
if (Test-Path -Path $coveragePath) {
7374
[xml]$BranchXML = Get-Content $coveragePath
7475
}

coderedcms/static/coderedcms/css/crx-admin.css

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,13 @@ textarea.monospace,
2727
.crx-logo-custom {
2828
width: auto;
2929
height: auto;
30-
max-height: 80px;
3130
max-width: 100%;
3231
display: block;
3332
}
34-
.crx-logo-container {
35-
box-sizing: border-box;
36-
margin: 0 15px;
37-
}
38-
.crx-logo-container.navbar-light {
39-
background-color: #fff;
40-
border-radius: 6px;
41-
padding: 0.25em;
42-
}
43-
.crx-logo-container.navbar-dark {
44-
background-color: transparent;
33+
34+
.sidebar-custom-branding {
35+
padding: 20px;
36+
margin: 0;
4537
}
4638

4739

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{% extends "wagtailadmin/base.html" %}
22
{% load coderedcms_tags wagtailimages_tags wagtailsettings_tags %}
3-
{% django_setting "CRX_DISABLE_LAYOUT" as disable_layout %}
43

54
{% block furniture %}
65
{% include "coderedcms/includes/crx_banner.html" %}
@@ -9,4 +8,4 @@
98

109
{# NOTE: this must be on a single line, otherwise Django templates will create
1110
whitespace, and wagtail will think the whitespace is the custom logo! #}
12-
{% block branding_logo %}{% if not disable_layout and settings.coderedcms.LayoutSettings.logo %}<div class="crx-logo-container {{settings.coderedcms.LayoutSettings.navbar_color_scheme}}">{% image settings.coderedcms.LayoutSettings.logo original format-webp preserve-svg as logo_image %}<img src="{{ logo_image.url }}" class="crx-logo-custom" alt="Dashboard"></div>{% endif %}{% endblock %}
11+
{% block branding_logo %}{% django_setting "CRX_DISABLE_LAYOUT" as disable_layout %}{% if not disable_layout and settings.coderedcms.LayoutSettings.favicon %}{% image settings.coderedcms.LayoutSettings.favicon original format-webp preserve-svg as logo_image %}<img src="{{ logo_image.url }}" class="crx-logo-custom" alt="Dashboard">{% endif %}{% endblock %}
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{% extends "wagtailadmin/login.html" %}
22
{% load coderedcms_tags i18n %}
3+
{% block branding_login %}
34
{% django_setting "WAGTAIL_SITE_NAME" as wagtail_site_name %}
4-
{% block branding_login %}{% trans 'Sign in to' %} {{ wagtail_site_name }}{% endblock %}
5+
{% trans 'Sign in to' %} {{ wagtail_site_name }}
6+
{% endblock %}

docs/releases/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ Supported Versions:
2929
.. toctree::
3030
:maxdepth: 1
3131

32+
v4.0.1
3233
v4.0.0
3334
v3.0.4
3435
v3.0.3

docs/releases/v4.0.1.rst

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
v4.0.1 release notes
2+
====================
3+
4+
5+
Bug fixes
6+
---------
7+
8+
* Fix site name on login screen (bug introduced in 4.0).
9+
10+
Changes
11+
-------
12+
13+
* Use favicon instead of logo in Wagtail Admin. Starting with 4.0, sites with navbar settings disabled do not have the ability to change the light/dark navbar setting, which was being used in the admin to put a light or dark background on the logo. Because if this, a white logo on the default light background is unreadable. Determining if the logo is light or dark was a perpetual problem. To simplify it, we've switched to using the favicon. The favicon is much more suitable for this kind of situation.
14+
15+
16+
Thank you!
17+
----------
18+
19+
Thanks to everyone who contributed to `4.0.1 on GitHub <https://github.com/coderedcorp/coderedcms/milestone/57?closed=1>`_.

0 commit comments

Comments
 (0)