stable

Clone or download

Read-only

Default logo is in SVG format

If site administrator didn't customize the default logo, then we should deliver a SVG version so that: * there is less chance for blur * we can customize the color according to the current theme A logo is considered customized as soon as the organization_logo.png is present in /var/lib/tuleap/images/ AND different than the one delivered by default in BurningParrot theme. The abilitiy to customize the svg logo (for example to let the site administrator use the company logo in svg) will come in a dedicated changeset. For now the detection of customized logo is done for each request. While the size of the files are small, it is inefficient to do it for each request for each user. A cache will be put in place but in a different commit. Part of story #16210 Remove navigation bar Change-Id: Id6113e89a4ce6ee0d05ea7f1e58221bc92e8aa53

Modified Files

Name
A src/common/layout/Logo/CustomizedLogoDetector.php +66 −0 Go to diff View file
A src/common/layout/Logo/FileContentComparator.php +67 −0 Go to diff View file
M src/scripts/FlamingParrot/sidebar.js +3 −0 Go to diff View file
A src/templates/common/logo.mustache +32 −0 Go to diff View file
R src/themes/BurningParrot/css/includes/logo.scss Go to diff View file
M src/themes/BurningParrot/include/BurningParrotTheme.php +4 −1 Go to diff View file
M src/themes/BurningParrot/include/HeaderPresenter.php +8 −1 Go to diff View file
M src/themes/BurningParrot/include/HeaderPresenterBuilder.php +10 −4 Go to diff View file
M src/themes/BurningParrot/include/Navbar/Presenter.php +12 −5 Go to diff View file
M src/themes/BurningParrot/include/Navbar/PresenterBuilder.php +4 −2 Go to diff View file
M src/themes/BurningParrot/templates/header.mustache +1 −1 Go to diff View file
M src/themes/BurningParrot/templates/navbar/navbar.mustache +1 −1 Go to diff View file
M src/themes/FlamingParrot/css/utils/_logo.scss +48 −0 Go to diff View file
M src/themes/FlamingParrot/css/utils/_navbar.scss +1 −0 Go to diff View file
M src/themes/FlamingParrot/include/ContainerPresenter.class.php +21 −14 Go to diff View file
M src/themes/FlamingParrot/include/NavBarPresenter.class.php +22 −17 Go to diff View file
M src/themes/FlamingParrot/templates/navbar.mustache +1 −1 Go to diff View file
M src/themes/FlamingParrot/templates/project-sidebar.mustache +1 −1 Go to diff View file
M src/www/themes/FlamingParrot/FlamingParrot_Theme.class.php +12 −4 Go to diff View file
A tests/unit/common/layout/Logo/CustomizedLogoDetectorTest.php +71 −0 Go to diff View file
A tests/unit/common/layout/Logo/FileContentComparatorTest.php +63 −0 Go to diff View file