Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
jenkins
提交
cc85dc1c
J
jenkins
项目概览
xxadev
/
jenkins
与 Fork 源项目一致
从无法访问的项目Fork
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
J
jenkins
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
cc85dc1c
编写于
4月 02, 2017
作者:
O
Oleg Nenashev
提交者:
GitHub
4月 02, 2017
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #2445 from recena/JENKINS-34670
[JENKINS-34670] Add support for a new full screen layout
上级
78c5fbcd
f3f29c0e
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
112 addition
and
78 deletion
+112
-78
core/src/main/resources/jenkins/install/SetupWizard/authenticate-security-token.jelly
...ins/install/SetupWizard/authenticate-security-token.jelly
+15
-17
core/src/main/resources/jenkins/install/SetupWizard/index.jelly
...rc/main/resources/jenkins/install/SetupWizard/index.jelly
+10
-6
core/src/main/resources/jenkins/install/SetupWizard/proxy-configuration.jelly
...ces/jenkins/install/SetupWizard/proxy-configuration.jelly
+26
-12
core/src/main/resources/jenkins/install/SetupWizard/setupWizardFirstUser.jelly
...es/jenkins/install/SetupWizard/setupWizardFirstUser.jelly
+38
-41
core/src/main/resources/lib/layout/html.jelly
core/src/main/resources/lib/layout/html.jelly
+3
-0
core/src/main/resources/lib/layout/layout.jelly
core/src/main/resources/lib/layout/layout.jelly
+12
-2
war/src/main/webapp/css/layout-common.css
war/src/main/webapp/css/layout-common.css
+8
-0
未找到文件。
core/src/main/resources/jenkins/install/SetupWizard/authenticate-security-token.jelly
浏览文件 @
cc85dc1c
<?jelly escape-by-default='true'?>
<l:html norefresh="true" title="${app.instance.displayName}" xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form">
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:s="/lib/form">
<l:layout norefresh="true" type="full-screen" title="${app.instance.displayName}">
<l:main-panel>
<st:include page="client-scripts" />
<form action="${app.instance.securityRealm.authenticationGatewayUrl}" method="POST">
<st:include page="client-scripts" />
<form action="${app.instance.securityRealm.authenticationGatewayUrl}" method="POST">
<input type="hidden" name="from" value="${request.getParameter('from')}" />
<div class="plugin-setup-wizard bootstrap-3">
<div class="modal fade in" style="display: block;">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">${%authenticate-security-token.getting.started}</h4>
</div>
<div class="modal-body">
<i class="water-mark icon-service"></i>
<div class="jumbotron welcome-panel offline">
<h1>${%authenticate-security-token.unlock.jenkins}</h1>
<p>
${%jenkins.install.findSecurityTokenMessage(it.initialAdminPasswordFile)}
</p>
<p>${%jenkins.install.findSecurityTokenMessage(it.initialAdminPasswordFile)}</p>
<p>${%authenticate-security-token.copy.password}</p>
<j:if test="${error}">
<div class="alert alert-danger">
<strong>${%authenticate-security-token.error} </strong>
${%authenticate-security-token.password.incorrect}
<strong>${%authenticate-security-token.error}</strong> ${%authenticate-security-token.password.incorrect}
</div>
</j:if>
<div class="form-group ${error ? 'has-error' : ''}">
<label class="control-label" for="security-token">${%authenticate-security-token.password.administrator}</label>
<input name="j_username" value="${app.setupWizard.initialSetupAdminUserName}" type="hidden"/>
<input id="security-token" class="form-control" type="password" name="j_password"/>
<label class="control-label" for="security-token">${%authenticate-security-token.password.administrator}</label>
<input name="j_username" value="${app.setupWizard.initialSetupAdminUserName}" type="hidden"/>
<input id="security-token" class="form-control" type="password" name="j_password"/>
</div>
</div>
</div>
<div class="modal-footer">
...
...
@@ -42,6 +38,8 @@
</div>
</div>
</div>
</form>
</l:main-panel>
</l:html>
</form>
</l:main-panel>
</l:layout>
</j:jelly>
\ No newline at end of file
core/src/main/resources/jenkins/install/SetupWizard/index.jelly
浏览文件 @
cc85dc1c
<?jelly escape-by-default='true'?>
<l:html norefresh="true" title="${it.displayName}" xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form">
<l:main-panel>
<div class="plugin-setup-wizard-container"></div>
<st:include page="wizard-ui"/>
</l:main-panel>
</l:html>
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form">
<l:layout norefresh="true" type="full-screen" title="${it.displayName}">
<l:main-panel>
<div class="plugin-setup-wizard-container"></div>
<st:include page="wizard-ui"/>
</l:main-panel>
</l:layout>
</j:jelly>
core/src/main/resources/jenkins/install/SetupWizard/proxy-configuration.jelly
浏览文件 @
cc85dc1c
<?jelly escape-by-default='true'?>
<l:html norefresh="true" title="${it.displayName}" xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form">
<l:main-panel>
<h1>${%HTTP Proxy Configuration}</h1>
<f:form method="post" action="/pluginManager/proxyConfigure" name="proxyConfigure">
<j:scope>
<j:set var="instance" value="${app.proxy}"/>
<j:set var="descriptor" value="${app.pluginManager.proxyDescriptor}"/>
<st:include from="${descriptor}" page="${descriptor.configPage}" />
</j:scope>
</f:form>
</l:main-panel>
</l:html>
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form">
<l:layout norefresh="true" type="full-screen" title="${it.displayName}">
<l:main-panel>
<style type="text/css">
#proxy-configuration {
margin: 8px;
}
</style>
<div id="proxy-configuration">
<h1>${%HTTP Proxy Configuration}</h1>
<f:form method="post" action="/pluginManager/proxyConfigure" name="proxyConfigure">
<j:scope>
<j:set var="instance" value="${app.proxy}"/>
<j:set var="descriptor" value="${app.pluginManager.proxyDescriptor}"/>
<st:include from="${descriptor}" page="${descriptor.configPage}" />
</j:scope>
</f:form>
</div>
</l:main-panel>
</l:layout>
</j:jelly>
core/src/main/resources/jenkins/install/SetupWizard/setupWizardFirstUser.jelly
浏览文件 @
cc85dc1c
<!--
This is used to create the first user.
-->
<?jelly escape-by-default='true'?>
<
l:html norefresh="true" title="${it.displayName}" xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f
="/lib/form">
<
j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:s
="/lib/form">
<l:main-panel>
<l:layout norefresh="true" type="full-screen" title="${it.displayName}">
<l:main-panel>
<link rel="stylesheet" href="${resURL}/css/google-fonts/roboto/css/roboto.css" type="text/css" />
<style type="text/css">
<link rel="stylesheet" href="${resURL}/css/google-fonts/roboto/css/roboto.css" type="text/css" />
<style type="text/css">
#main-panel {
margin: 0;
padding: 0;
}
tr td {
padding-bottom: 2px;
}
body {
#create-admin-user {
padding: 20px 20px 20px 100px;
font-family: 'roboto';
}
form > div {
margin: 8px;
}
#create-admin-user form > div {
margin: 0 !important;
}
h1 {
}
#create-admin-user h1 {
font-family: 'roboto', sans-serif;
font-size: 48px;
margin-top: 30px;
font-weight: 500;
}
h1 img {
position: absolute;
right: -80
px;
top: 38px;
}
tr td,
input {
}
#create-admin-user tr td {
padding-bottom: 2
px;
}
#create-admin-user tr td, #create-admin-user
input {
line-height: 25px;
margin-bottom: 6px;
}
input[type=text], input[type=password] {
}
#create-admin-user input[type=text], input[type=password] {
border: 1px solid #ddd;
border-radius: 2px;
padding: 1px 8px;
}
</style>
<form action="${rootURL}/setupWizard/createAdminUser" method="post">
<local:_entryForm it="${app.securityRealm}" host="${app.securityRealm}" title="${%Create First Admin User}" captcha="${false}" xmlns:local="/hudson/security/HudsonPrivateSecurityRealm" />
<script>
$('username').focus();
</script>
</form>
</l:main-panel>
</l:html>
}
</style>
<div id="create-admin-user">
<form action="${rootURL}/setupWizard/createAdminUser" method="post">
<local:_entryForm it="${app.securityRealm}" host="${app.securityRealm}" title="${%Create First Admin User}" captcha="${false}" xmlns:local="/hudson/security/HudsonPrivateSecurityRealm" />
<script>
$('username').focus();
</script>
</form>
</div>
</l:main-panel>
</l:layout>
</j:jelly>
\ No newline at end of file
core/src/main/resources/lib/layout/html.jelly
浏览文件 @
cc85dc1c
...
...
@@ -26,6 +26,9 @@ THE SOFTWARE.
<?jelly escape-by-default='true'?>
<j:jelly
xmlns:j=
"jelly:core"
xmlns:st=
"jelly:stapler"
xmlns:d=
"jelly:define"
xmlns:l=
"/lib/layout"
xmlns:i=
"jelly:fmt"
xmlns:x=
"jelly:xml"
>
<st:documentation>
This Jelly tag is deprecated, use
<l:layout
/>
tag instead. Defined on layout.jelly.
Outer-most tag for a normal (non-AJAX) HTML rendering.
This is used with nested
<
header>,
<
side-panel>, and
<
main-panel>
to form Jenkins's basic HTML layout.
...
...
core/src/main/resources/lib/layout/layout.jelly
浏览文件 @
cc85dc1c
...
...
@@ -53,7 +53,7 @@ THE SOFTWARE.
(The permission will be checked against the "it" object.)
</st:attribute>
<st:attribute
name=
"type"
use=
"optional"
>
Available values: two-column (by default)
or one-column (full-width size
).
Available values: two-column (by default)
, one-column (full-width size) or full-screen (since TODO
).
</st:attribute>
</st:documentation>
<st:setHeader
name=
"Expires"
value=
"0"
/>
...
...
@@ -69,9 +69,14 @@ ${h.initPageVariables(context)}
this also allows us to configure HttpSessionContextIntegrationFilter not to create sessions,
which I suspect can end up creating sessions for wrong resource types (such as static resources.)
-->
<j:if
test=
"${attrs.type==null}"
>
<j:set
var=
"layoutType"
value=
"two-column"
/>
</j:if>
<j:if
test=
"${attrs.type!=null}"
>
<j:set
var=
"layoutType"
value=
"${attrs.type}"
/>
</j:if>
<j:set
var=
"isMSIE"
value=
"${userAgent.contains('MSIE')}"
/>
<j:set
var=
"_"
value=
"${request.getSession()}"
/>
<j:set
var=
"_"
value=
"${h.configureAutoRefresh(request, response, attrs.norefresh!=null and !attrs.norefresh.equals(false))}"
/>
...
...
@@ -169,7 +174,9 @@ ${h.initPageVariables(context)}
<
script
src
=
"
${resURL}/jsbundles/page-init.js
"
type
=
"
text/javascript
"
/>
<
/head
>
<
body
id
=
"
jenkins
"
class
=
"
yui-skin-sam jenkins-${h.version} ${layoutType}
"
data
-
version
=
"
${h.version}
"
data
-
model
-
type
=
"
${it.class.name}
"
>
<
body
id
=
"
jenkins
"
class
=
"
yui-skin-sam ${layoutType} jenkins-${h.version}
"
data
-
version
=
"
${h.version}
"
data
-
model
-
type
=
"
${it.class.name}
"
>
<
j
:
if
test
=
"
${layoutType!='full-screen'}
"
>
<!--
for
accessibility
,
skip
the
entire
navigation
bar
and
etc
and
go
straight
to
the
head
of
the
content
-->
<
a
href
=
"
#skip2content
"
class
=
"
skiplink
"
>
Skip
to
content
<
/a
>
...
...
@@ -235,6 +242,7 @@ ${h.initPageVariables(context)}
</l:breadcrumbBar>
</div>
</div>
</j:if>
<div
id=
"page-body"
class=
"clear"
>
<j:if
test=
"${layoutType=='two-column'}"
>
...
...
@@ -260,6 +268,7 @@ ${h.initPageVariables(context)}
</div>
</div>
<j:if
test=
"${layoutType!='full-screen'}"
>
<footer>
<div
class=
"container-fluid"
>
<div
class=
"row"
>
...
...
@@ -279,6 +288,7 @@ ${h.initPageVariables(context)}
</div>
</div>
</footer>
</j:if>
</body>
</html>
...
...
war/src/main/webapp/css/layout-common.css
浏览文件 @
cc85dc1c
...
...
@@ -95,6 +95,14 @@ body.two-column #main-panel {
margin-left
:
320px
;
}
body
.full-screen
{
padding
:
0
;
}
body
.full-screen
#main-panel
{
padding
:
0
;
}
@media
(
max-width
:
970px
)
{
body
.two-column
#side-panel
{
width
:
100%
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录