提交 c5284e30 编写于 作者: U Ulli Hafner

Add optional property to suppress loading of BS3.

Jenkins bundled Bootstrap 3 grid uses untypical 24 columns
and is not compatible with new JS frameworks that are based
on BS4 and a 12 column grid.

Workaround for https://issues.jenkins-ci.org/browse/JENKINS-61326
上级 ab561671
......@@ -58,6 +58,10 @@ THE SOFTWARE.
<st:attribute name="type" use="optional">
Available values: two-column (by default), one-column (full-width size) or full-screen (since 2.53).
</st:attribute>
<st:attribute name="nogrid" use="optional">
Do not include Bootstrap 3 grid. When a plugin wants to use a more recent version of Bootstrap then
the bundled grid will cause conflicts.
</st:attribute>
</st:documentation>
<l:view contentType="text/html;charset=UTF-8">
<st:setHeader name="Expires" value="0" />
......@@ -107,7 +111,9 @@ THE SOFTWARE.
<link rel="stylesheet" href="${resURL}/jsbundles/base-styles-v2.css" type="text/css" />
<link rel="stylesheet" href="${resURL}/css/color.css" type="text/css" />
<link rel="stylesheet" href="${resURL}/css/responsive-grid.css" type="text/css" />
<j:if test="${attrs.nogrid==null or attrs.nogrid.equals(false)}">
<link rel="stylesheet" href="${resURL}/css/responsive-grid.css" type="text/css" />
</j:if>
<j:if test="${attrs.css!=null}">
<link rel="stylesheet" href="${resURL}${attrs.css}" type="text/css" />
</j:if>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册