stable

Clone or download

Read-only

request #11246: Artifacts should provide open graph protocol information

So that modern apps can display relevant informations when they embed a link to the artifact (E.g Mattermost, Twitter, ...) This can be tested with Open Graph Preview extension for Chrome for example. Currently only the following properties are exposed: - url (direct link to the artifact) - title (based on title semantic) - description (based on description semantic) - image (logo of the current platform, accordingly to sys_default_theme_variant in local.inc) Change-Id: I214eb8710c918b4923a6d530e089f4551c07ee63

Modified Files

Name
M plugins/tracker/include/Tracker/Artifact/Renderer/EditRenderer.class.php +9 −1 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Tracker_Artifact.class.php +27 −0 Go to diff View file
A src/common/OpenGraph/NoOpenGraphPresenter.php +29 −0 Go to diff View file
A src/common/OpenGraph/OpenGraphPresenter.php +47 −0 Go to diff View file
A src/common/OpenGraph/OpenGraphPropertyPresenter.php +33 −0 Go to diff View file
M src/common/autoload.php +5 −2 Go to diff View file
M src/common/layout/ThemeVariantColor.php +32 −1 Go to diff View file
M src/www/themes/BurningParrot/HeaderPresenterBuilder.php +1 −30 Go to diff View file
M src/www/themes/FlamingParrot/FlamingParrot_Theme.class.php +4 −1 Go to diff View file
M src/www/themes/FlamingParrot/HeaderPresenter.class.php +18 −8 Go to diff View file
M src/www/themes/FlamingParrot/templates/header.mustache +7 −2 Go to diff View file
A src/www/themes/common/images/opengraph/blue.png Binary file Go to diff View file
A src/www/themes/common/images/opengraph/green.png Binary file Go to diff View file
A src/www/themes/common/images/opengraph/grey.png Binary file Go to diff View file
A src/www/themes/common/images/opengraph/orange.png Binary file Go to diff View file
A src/www/themes/common/images/opengraph/purple.png Binary file Go to diff View file
A src/www/themes/common/images/opengraph/red.png Binary file Go to diff View file