Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
jenkins
提交
41252c27
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,发现更多精彩内容 >>
提交
41252c27
编写于
3月 05, 2016
作者:
K
kzantow
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Move dependency toggle out of label, so it won't affect the nearby
checkbox, fix stray 'deps' element
上级
72c2ffc1
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
78 addition
and
77 deletion
+78
-77
war/src/main/js/pluginSetupWizardGui.js
war/src/main/js/pluginSetupWizardGui.js
+3
-2
war/src/main/js/templates/pluginSelectionPanel.hbs
war/src/main/js/templates/pluginSelectionPanel.hbs
+21
-19
war/src/main/less/pluginSetupWizard.less
war/src/main/less/pluginSetupWizard.less
+54
-56
未找到文件。
war/src/main/js/pluginSetupWizardGui.js
浏览文件 @
41252c27
...
...
@@ -282,6 +282,7 @@ var createPluginSetupWizard = function() {
// toggles visibility of dependency listing for a plugin
var
toggleDependencyList
=
function
()
{
var
$btn
=
$
(
this
);
var
$toggle
=
$btn
.
parents
(
'
.deps:first
'
);
var
plugName
=
$btn
.
attr
(
'
data-plugin-name
'
);
if
(
!
visibleDependencies
[
plugName
])
{
visibleDependencies
[
plugName
]
=
true
;
...
...
@@ -290,10 +291,10 @@ var createPluginSetupWizard = function() {
visibleDependencies
[
plugName
]
=
false
;
}
if
(
!
visibleDependencies
[
plugName
])
{
$
btn
.
removeClass
(
'
active
'
);
$
toggle
.
removeClass
(
'
show
'
);
}
else
{
$
btn
.
addClass
(
'
active
'
);
$
toggle
.
addClass
(
'
show
'
);
}
};
...
...
war/src/main/js/templates/pluginSelectionPanel.hbs
浏览文件 @
41252c27
...
...
@@ -31,30 +31,32 @@
<h2
id=
"
{{
id
@key
}}
"
class=
"expanded"
>
{{
@key
}}
{{
pluginCountForCategory
@key
}}
</h2>
<div
class=
"plugins-for-category"
>
{{#
each
this
}}
<label
class=
"
{{#
inSelectedPlugins
plugin
.
name
}}
selected
{{/
inSelectedPlugins
}}
"
id=
"row-
{{
plugin
.
name
}}
"
>
<span
class=
"title"
>
<input
type=
"checkbox"
id=
"chk-
{{
plugin
.
name
}}
"
name=
"
{{
plugin
.
name
}}
"
value=
"
{{
searchTerm
}}
"
{{#
inSelectedPlugins
plugin
.
name
}}
checked=
"checked"
{{/
inSelectedPlugins
}}
/>
{{
plugin
.
title
}}
</span>
<span
class=
"description"
>
{{{
plugin
.
excerpt
}}}
</span>
<span
class=
"deps
{{#
ifVisibleDependency
..
/
plugin
.
name
}}
show
{{/
ifVisibleDependency
}}
"
>
{{#
hasDependencies
plugin
.
name
}}
<span
class=
"deps"
>
<div
class=
"btn btn-link toggle-dependency-list
{{#
ifVisibleDependency
..
/
plugin
.
name
}}
active
{{/
ifVisibleDependency
}}
"
type=
"button"
data-plugin-name=
"
{{
..
/
plugin
.
name
}}
"
>
<div
class=
"btn btn-link toggle-dependency-list"
type=
"button"
data-plugin-name=
"
{{
..
/
plugin
.
name
}}
"
>
{{
..
/
..
/
..
/
translations
.
installWizard_installIncomplete_dependenciesLabel
}}
<span
class=
"badge"
>
{{
dependencyCount
..
/
plugin
.
name
}}
</span>
</div>
<div
class=
"dep-list"
>
{{#
eachDependency
..
/
plugin
.
name
}}
<span
class=
"dep badge"
>
{{
title
}}
</span>
{{/
eachDependency
}}
</div>
</deps>
{{/
hasDependencies
}}
</label>
<label
class=
"
{{#
inSelectedPlugins
plugin
.
name
}}
selected
{{/
inSelectedPlugins
}}
"
id=
"row-
{{
plugin
.
name
}}
"
>
<span
class=
"title"
>
<input
type=
"checkbox"
id=
"chk-
{{
plugin
.
name
}}
"
name=
"
{{
plugin
.
name
}}
"
value=
"
{{
searchTerm
}}
"
{{#
inSelectedPlugins
plugin
.
name
}}
checked=
"checked"
{{/
inSelectedPlugins
}}
/>
{{
plugin
.
title
}}
</span>
<span
class=
"description"
>
{{{
plugin
.
excerpt
}}}
</span>
{{#
hasDependencies
plugin
.
name
}}
<div
class=
"dep-list"
>
{{#
eachDependency
..
/
plugin
.
name
}}
<span
class=
"dep badge"
>
{{
title
}}
</span>
{{/
eachDependency
}}
</div>
{{/
hasDependencies
}}
</label>
{{/
each
}}
</span>
</div>
{{/
each
}}
</div>
...
...
war/src/main/less/pluginSetupWizard.less
浏览文件 @
41252c27
...
...
@@ -376,62 +376,6 @@
vertical-align: middle;
}
.deps {
.toggle-dependency-list {
position: absolute;
top: 2px;
right: 5px;
color: #777;
border: 0;
text-decoration: none;
padding: 4px 8px;
.badge {
margin-left: 7px;
}
&:hover, &.active {
text-decoration: underline;
}
&.active {
&:after {
content: '';
display: inline-block;
position: absolute;
top: 50%;
right: 100%;
width: 0;
height: 0;
border-left: 7px solid transparent;
border-right: 7px solid transparent;
border-top: 7px solid #999;
margin: -3px -3px 0 0;
}
+ .dep-list {
display: block;
}
}
}
.dep-list {
padding: 10px 0 6px 0;
display: none;
.badge {
padding: 4px 8px;
margin: 5px 3px 0 0;
}
}
}
&.selected .deps {
.toggle-dependency-list {
top: 1px;
right: 4px;
}
}
+ .tooltip {
left: 2px !important;
margin-right: 16px;
...
...
@@ -449,6 +393,60 @@
}
}
}
.deps {
display: block;
position: relative;
.toggle-dependency-list {
position: absolute;
top: 0;
right: 0;
color: #777;
border: 0;
text-decoration: none;
padding: 5px 13px;
z-index: 100;
.badge {
margin-left: 7px;
}
&:hover, &.active {
text-decoration: underline;
}
}
.dep-list {
padding: 10px 0 6px 0;
display: none;
.badge {
padding: 4px 8px;
margin: 5px 3px 0 0;
}
}
&.show {
.toggle-dependency-list:after {
content: '';
display: inline-block;
position: absolute;
top: 50%;
right: 100%;
width: 0;
height: 0;
border-left: 7px solid transparent;
border-right: 7px solid transparent;
border-top: 7px solid #999;
margin: -3px -3px 0 0;
}
.dep-list {
display: block;
}
}
}
.categories {
position: relative;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录