-
- 下载
Merge branch 'remove-pinto-from-flash' into 'master'
Remove pinTo from Flash ## What does this MR do? - replace `pinTo` of `Flash` by `parent` parameter in constructor - move positioning of layout containers from CoffeeScript to layout files - adjust styling of inline flash messages ## Are there points in the code the reviewer needs to double check? - display of flash messages in general ## Why was this MR needed? - allow finding and positioning flash message containers within layout files - allow adding different CSS classes to flash containers within layout files (necessary for fixing #18908) - allow multiple flash messages to be displayed at different places at the same time - make inline flash messages look nicer ## What are the relevant issue numbers? closes #18908, closes part of #18897 ## Screenshots ### Inline flash message (before)   ### Inline flash message (after)   ### Other flash messages (after)  ---  ---  ---  ---  ---  --- ### This is possible now  See merge request !4854
显示
- CHANGELOG 1 个添加, 0 个删除CHANGELOG
- app/assets/javascripts/flash.js.coffee 17 个添加, 13 个删除app/assets/javascripts/flash.js.coffee
- app/assets/javascripts/notes.js.coffee 4 个添加, 4 个删除app/assets/javascripts/notes.js.coffee
- app/assets/stylesheets/framework/flash.scss 20 个添加, 2 个删除app/assets/stylesheets/framework/flash.scss
- app/views/layouts/_flash.html.haml 1 个添加, 1 个删除app/views/layouts/_flash.html.haml
- app/views/projects/notes/_notes_with_form.html.haml 2 个添加, 0 个删除app/views/projects/notes/_notes_with_form.html.haml
- spec/javascripts/fixtures/issues_show.html.haml 1 个添加, 1 个删除spec/javascripts/fixtures/issues_show.html.haml
想要评论请 注册 或 登录