Skip to content

Draft: Add render_ee and override render_ce for views

Qian Zhang (Gary)请求将feat/add_render_super合并到main-jh

Issue: https://gitlab.com/gitlab-jh/gitlab/-/issues/271

We have a CE layout file: app/views/layouts/_page.html.haml.

We want to reuse this layout file and extend it in JH folder:

jh/app/views/layouts/_page.html.haml

= render_ee("layouts/page")

ExtendedContent

How to use

In JiHu repo:

  • If you want to extend the EE view, use render_ee;
  • If you want to extend the CE view, and EE view does not exist, use render_ee;
  • If you want to jump EE view and extend CE view, use render_ce;
Baodong 编辑于

合并请求报告

加载中