stable

Clone or download

Read-only

Style project labels

Part of story #10501: Manage project labels In a project that already have labels, update directly in database the db and for a given label set is_outline = 0, color = 'fiesta-red'. Expected results: * In project ยป admin ยป labels, the given label is plain red, while the other ones are outline grey. * In pull request dashboard, labels are displayed accordingly to their color. * In a given pull request where you can edit labels, the selectbox present choices with defined color + a bullet for outline/plain. Change-Id: Ib2358a2b351376b66fd8ed3d3d6c66f7c52fec0b

Modified Files

Name
M plugins/pullrequest/include/PullRequest/Label/LabelsCurlyCoatedRetriever.php +1 โˆ’1 Go to diff View file
M src/common/Label/Label.php +26 โˆ’4 Go to diff View file
M src/common/Label/REST/LabelRepresentation.php +14 โˆ’2 Go to diff View file
M src/common/project/Label/IndexController.php +1 โˆ’1 Go to diff View file
M src/common/project/Label/LabelDao.php +2 โˆ’1 Go to diff View file
M src/common/project/Label/LabelPresenter.php +12 โˆ’4 Go to diff View file
M src/common/project/Label/LabelsCurlyCoatedRetriever.php +1 โˆ’1 Go to diff View file
M src/db/mysql/database_structure.sql +2 โˆ’0 Go to diff View file
A src/db/mysql/updates/2017/201709131009_add_color_in_project_label.php +45 โˆ’0 Go to diff View file
M src/templates/project/labels/list-labels.mustache +4 โˆ’1 Go to diff View file
M src/www/scripts/labels/labels-box.js +20 โˆ’1 Go to diff View file
M src/www/themes/FlamingParrot/css/utils/_labels-box.scss +39 โˆ’4 Go to diff View file
M src/www/themes/common/css/utils/_colors.scss +8 โˆ’1 Go to diff View file