Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
LinuxSuRen
jenkins
提交
30518db6
J
jenkins
项目概览
LinuxSuRen
/
jenkins
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
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,发现更多精彩内容 >>
提交
30518db6
编写于
12月 15, 2011
作者:
K
Kohsuke Kawaguchi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
added sticky div to help with UI
上级
d373141f
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
50 addition
and
4 deletion
+50
-4
changelog.html
changelog.html
+2
-0
core/src/main/resources/hudson/PluginManager/table.jelly
core/src/main/resources/hudson/PluginManager/table.jelly
+6
-4
war/src/main/webapp/css/style.css
war/src/main/webapp/css/style.css
+9
-0
war/src/main/webapp/images/bottom-sticker-top-edge.png
war/src/main/webapp/images/bottom-sticker-top-edge.png
+0
-0
war/src/main/webapp/scripts/hudson-behavior.js
war/src/main/webapp/scripts/hudson-behavior.js
+33
-0
未找到文件。
changelog.html
浏览文件 @
30518db6
...
...
@@ -55,6 +55,8 @@ Upcoming changes</a>
<!-- Record your changes in the trunk here. -->
<div
id=
"trunk"
style=
"display:none"
>
<!--=TRUNK-BEGIN=-->
<ul
class=
image
>
<li
class=
rfe
>
Update center UI improvement. "Install" button is now always visisble.
<li
class=
rfe
>
Make the matrix configuration table looks like the rest of Jenkins tables.
(
<a
href=
"https://issues.jenkins-ci.org/browse/JENKINS-10251"
>
issue 10251
</a>
)
...
...
core/src/main/resources/hudson/PluginManager/table.jelly
浏览文件 @
30518db6
...
...
@@ -136,10 +136,12 @@ THE SOFTWARE.
</table>
<j:if test="${!empty(list)}">
<div style="margin-top:1em">
<f:submit value="${%Install without restart}" name="dynamicLoad" />
<span style="margin-left:2em;"></span>
<f:submit value="${%Download now and install after restart}" />
<div id="bottom-sticker" >
<div style="background:white; padding:1em">
<f:submit value="${%Install without restart}" name="dynamicLoad" />
<span style="margin-left:2em;"></span>
<f:submit value="${%Download now and install after restart}" />
</div>
</div>
</j:if>
<d:invokeBody />
...
...
war/src/main/webapp/css/style.css
浏览文件 @
30518db6
...
...
@@ -469,6 +469,15 @@ LABEL.attach-previous {
margin-left
:
0.5em
;
}
#bottom-sticker
{
width
:
100%
;
/* it needs to occupy the entire width or else the underlying content will see through */
}
.bottom-sticker-top-edge
{
height
:
16px
;
background-image
:
url("../images/bottom-sticker-top-edge.png")
;
background-repeat
:
repeat-x
;
}
/* ======================== error/warning message (mainly in the form.) Use them on block elements ======================== */
.error
{
color
:
#CC0000
;
...
...
war/src/main/webapp/images/bottom-sticker-top-edge.png
0 → 100644
浏览文件 @
30518db6
此差异由.gitattributes 抑制。
war/src/main/webapp/scripts/hudson-behavior.js
浏览文件 @
30518db6
...
...
@@ -1233,6 +1233,39 @@ var hudsonRules = {
$
(
hidePreview
).
hide
();
$
(
previewDiv
).
hide
();
};
},
/*
Use on div tag to make it sticky visible on the bottom of the page.
When page scrolls it remains in the bottom of the page
Convenient on "OK" button and etc for a long form page
*/
"
#bottom-sticker
"
:
function
(
sticker
)
{
var
DOM
=
YAHOO
.
util
.
Dom
;
var
shadow
=
document
.
createElement
(
"
div
"
);
sticker
.
parentNode
.
insertBefore
(
shadow
,
sticker
);
var
topedge
=
document
.
createElement
(
"
div
"
);
topedge
.
className
=
"
bottom-sticker-top-edge
"
;
sticker
.
insertBefore
(
topedge
,
sticker
.
firstChild
);
function
adjustSticker
()
{
shadow
.
style
.
height
=
sticker
.
offsetHeight
+
"
px
"
;
var
viewport
=
DOM
.
getClientRegion
();
var
pos
=
DOM
.
getRegion
(
shadow
);
sticker
.
style
.
position
=
"
fixed
"
;
sticker
.
style
.
bottom
=
Math
.
max
(
0
,
viewport
.
bottom
-
pos
.
bottom
)
+
"
px
"
}
// react to layout change
Element
.
observe
(
window
,
"
scroll
"
,
adjustSticker
);
Element
.
observe
(
window
,
"
resize
"
,
adjustSticker
);
// initial positioning
Element
.
observe
(
window
,
"
load
"
,
adjustSticker
);
adjustSticker
();
}
};
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录