Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
jenkins
提交
679c127f
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,发现更多精彩内容 >>
提交
679c127f
编写于
12月 01, 2014
作者:
T
tfennelly
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Model link on build name in build history
上级
0f013248
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
37 addition
and
9 deletion
+37
-9
core/src/main/resources/hudson/widgets/HistoryWidget/entry.jelly
...c/main/resources/hudson/widgets/HistoryWidget/entry.jelly
+2
-2
core/src/main/resources/lib/layout/breadcrumbs.js
core/src/main/resources/lib/layout/breadcrumbs.js
+12
-2
core/src/main/resources/lib/layout/pane.jelly
core/src/main/resources/lib/layout/pane.jelly
+1
-1
war/src/main/webapp/css/style.css
war/src/main/webapp/css/style.css
+4
-4
war/src/main/webapp/scripts/hudson-behavior.js
war/src/main/webapp/scripts/hudson-behavior.js
+18
-0
未找到文件。
core/src/main/resources/hudson/widgets/HistoryWidget/entry.jelly
浏览文件 @
679c127f
...
@@ -35,10 +35,10 @@ THE SOFTWARE.
...
@@ -35,10 +35,10 @@ THE SOFTWARE.
<div class="build-icon">
<div class="build-icon">
<a class="build-status-link" href="${link}console"><l:icon alt="${build.iconColor.description} > ${%Console Output}" class="${build.buildStatusIconClassName} icon-sm" tooltip="${build.iconColor.description} > ${%Console Output}"/></a>
<a class="build-status-link" href="${link}console"><l:icon alt="${build.iconColor.description} > ${%Console Output}" class="${build.buildStatusIconClassName} icon-sm" tooltip="${build.iconColor.description} > ${%Console Output}"/></a>
</div>
</div>
<a class="
display-name
" href="${link}">${build.displayName}</a>
<a class="
tip model-link inside build-link display-name" update-parent-class=".build-row
" href="${link}">${build.displayName}</a>
</div>
</div>
<div class="pane build-details" time="${build.timestamp.time.time}">
<div class="pane build-details" time="${build.timestamp.time.time}">
<a class="tip model-link inside build-link" href="${link}">
<a class="tip model-link inside build-link" href="${link}"
update-parent-class=".build-row"
>
<i:formatDate value="${build.timestamp.time}" type="both" dateStyle="medium" timeStyle="short" />
<i:formatDate value="${build.timestamp.time}" type="both" dateStyle="medium" timeStyle="short" />
</a>
</a>
<j:if test="${build.building}">
<j:if test="${build.building}">
...
...
core/src/main/resources/lib/layout/breadcrumbs.js
浏览文件 @
679c127f
...
@@ -93,6 +93,7 @@ var breadcrumbs = (function() {
...
@@ -93,6 +93,7 @@ var breadcrumbs = (function() {
var
menuSelector
=
(
function
()
{
var
menuSelector
=
(
function
()
{
var
menuSelector
=
$
(
document
.
createElement
(
"
div
"
));
var
menuSelector
=
$
(
document
.
createElement
(
"
div
"
));
var
menuSelectorTarget
;
var
menuSelectorTarget
;
var
parentToUpdate
;
document
.
body
.
appendChild
(
menuSelector
);
document
.
body
.
appendChild
(
menuSelector
);
menuSelector
.
id
=
'
menuSelector
'
;
menuSelector
.
id
=
'
menuSelector
'
;
...
@@ -121,10 +122,15 @@ var breadcrumbs = (function() {
...
@@ -121,10 +122,15 @@ var breadcrumbs = (function() {
this
.
style
.
visibility
=
"
visible
"
;
this
.
style
.
visibility
=
"
visible
"
;
menuSelectorTarget
=
target
;
menuSelectorTarget
=
target
;
var
updateParentSelector
=
menuSelectorTarget
.
getAttribute
(
'
update-parent-class
'
);
if
(
updateParentSelector
)
{
parentToUpdate
=
$
(
menuSelectorTarget
).
up
(
updateParentSelector
);
}
};
};
menuSelector
.
hide
=
function
()
{
menuSelector
.
hide
=
function
()
{
this
.
style
.
visibility
=
"
hidden
"
;
this
.
style
.
visibility
=
"
hidden
"
;
menuSelectorTarget
=
undefined
;
menuSelectorTarget
=
undefined
;
parentToUpdate
=
undefined
;
};
};
menuSelector
.
observe
(
"
click
"
,
function
()
{
menuSelector
.
observe
(
"
click
"
,
function
()
{
invokeContextMenu
(
this
.
target
);
invokeContextMenu
(
this
.
target
);
...
@@ -137,16 +143,20 @@ var breadcrumbs = (function() {
...
@@ -137,16 +143,20 @@ var breadcrumbs = (function() {
}.
bind
(
menuSelector
),
750
);
}.
bind
(
menuSelector
),
750
);
menuSelector
.
observe
(
"
mouseover
"
,
function
()
{
menuSelector
.
observe
(
"
mouseover
"
,
function
()
{
logger
(
"
mouse entered 'v'
"
);
if
(
menuSelectorTarget
)
{
if
(
menuSelectorTarget
)
{
if
(
parentToUpdate
)
{
parentToUpdate
.
addClassName
(
'
model-link-active
'
);
}
menuSelectorTarget
.
addClassName
(
'
mouseIsOverMenuSelector
'
);
menuSelectorTarget
.
addClassName
(
'
mouseIsOverMenuSelector
'
);
}
}
canceller
.
cancel
();
canceller
.
cancel
();
});
});
menuSelector
.
observe
(
"
mouseout
"
,
function
()
{
menuSelector
.
observe
(
"
mouseout
"
,
function
()
{
logger
(
"
mouse left 'v'
"
);
canceller
.
schedule
();
canceller
.
schedule
();
if
(
menuSelectorTarget
)
{
if
(
menuSelectorTarget
)
{
if
(
parentToUpdate
)
{
parentToUpdate
.
removeClassName
(
'
model-link-active
'
);
}
menuSelectorTarget
.
removeClassName
(
'
mouseIsOverMenuSelector
'
);
menuSelectorTarget
.
removeClassName
(
'
mouseIsOverMenuSelector
'
);
}
}
});
});
...
...
core/src/main/resources/lib/layout/pane.jelly
浏览文件 @
679c127f
...
@@ -48,7 +48,7 @@ THE SOFTWARE.
...
@@ -48,7 +48,7 @@ THE SOFTWARE.
Footer of the box. Can include HTML.
Footer of the box. Can include HTML.
</st:attribute>
</st:attribute>
</st:documentation>
</st:documentation>
<div class="container-fluid pane-frame" id="${attrs.id}">
<div class="container-fluid pane-frame
track-mouse
" id="${attrs.id}">
<div class="row">
<div class="row">
<div class="col-xs-24 pane-header">
<div class="col-xs-24 pane-header">
<a class="collapse" href="${rootURL}/toggleCollapse?paneId=${attrs.id}"
<a class="collapse" href="${rootURL}/toggleCollapse?paneId=${attrs.id}"
...
...
war/src/main/webapp/css/style.css
浏览文件 @
679c127f
...
@@ -483,7 +483,7 @@ div.dashboard {
...
@@ -483,7 +483,7 @@ div.dashboard {
border-radius
:
4px
;
border-radius
:
4px
;
}
}
#side-panel
.pane-frame
:hover
{
#side-panel
.pane-frame
:hover
,
#side-panel
.pane-frame.mouseover
{
border
:
solid
1px
#cecece
;
border
:
solid
1px
#cecece
;
}
}
...
@@ -950,7 +950,7 @@ table.parameters > tbody:hover {
...
@@ -950,7 +950,7 @@ table.parameters > tbody:hover {
padding
:
3px
4px
3px
4px
;
padding
:
3px
4px
3px
4px
;
}
}
.build-row
:hover
{
.build-row
:hover
,
.build-row.model-link-active
{
background
:
#e8e8e8
!important
;
background
:
#e8e8e8
!important
;
}
}
...
@@ -959,11 +959,11 @@ table.parameters > tbody:hover {
...
@@ -959,11 +959,11 @@ table.parameters > tbody:hover {
}
}
.build-row-cell
.pane.build-name
{
.build-row-cell
.pane.build-name
{
width
:
2
0
%
;
width
:
2
5
%
;
font-weight
:
bold
;
font-weight
:
bold
;
}
}
.build-row-cell
.pane.build-details
{
.build-row-cell
.pane.build-details
{
width
:
50
%
;
width
:
45
%
;
}
}
.build-row-cell
.pane.build-controls
{
.build-row-cell
.pane.build-controls
{
width
:
30%
;
width
:
30%
;
...
...
war/src/main/webapp/scripts/hudson-behavior.js
浏览文件 @
679c127f
...
@@ -1131,6 +1131,24 @@ var jenkinsRules = {
...
@@ -1131,6 +1131,24 @@ var jenkinsRules = {
new
YAHOO
.
widget
.
Button
(
e
,
{
type
:
"
menu
"
,
menu
:
$
(
e
).
next
()
});
new
YAHOO
.
widget
.
Button
(
e
,
{
type
:
"
menu
"
,
menu
:
$
(
e
).
next
()
});
},
},
"
.track-mouse
"
:
function
(
element
)
{
var
DOM
=
YAHOO
.
util
.
Dom
;
$
(
element
).
observe
(
"
mouseenter
"
,
function
()
{
element
.
addClassName
(
"
mouseover
"
);
var
mousemoveTracker
=
function
(
event
)
{
var
elementRegion
=
DOM
.
getRegion
(
element
);
if
(
event
.
x
<
elementRegion
.
left
||
event
.
x
>
elementRegion
.
right
||
event
.
y
<
elementRegion
.
top
||
event
.
y
>
elementRegion
.
bottom
)
{
element
.
removeClassName
(
"
mouseover
"
);
Element
.
stopObserving
(
document
,
"
mousemove
"
,
mousemoveTracker
);
}
};
Element
.
observe
(
document
,
"
mousemove
"
,
mousemoveTracker
);
});
},
/*
/*
Use on div tag to make it sticky visible on the bottom of the page.
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
When page scrolls it remains in the bottom of the page
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录