Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
LinuxSuRen
jenkins
提交
d17e5594
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,发现更多精彩内容 >>
未验证
提交
d17e5594
编写于
5月 11, 2020
作者:
T
Tim Jacomb
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
System read cleanup
上级
34f5ea55
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
6 addition
and
36 deletion
+6
-36
core/src/main/resources/hudson/PluginManager/advanced.jelly
core/src/main/resources/hudson/PluginManager/advanced.jelly
+1
-8
core/src/main/resources/hudson/PluginManager/installed.jelly
core/src/main/resources/hudson/PluginManager/installed.jelly
+1
-8
core/src/main/resources/hudson/ProxyConfiguration/config.groovy
...rc/main/resources/hudson/ProxyConfiguration/config.groovy
+1
-3
core/src/main/resources/hudson/model/Job/configure.jelly
core/src/main/resources/hudson/model/Job/configure.jelly
+1
-9
core/src/main/resources/hudson/security/GlobalSecurityConfiguration/index.groovy
.../hudson/security/GlobalSecurityConfiguration/index.groovy
+1
-3
core/src/main/resources/jenkins/tools/GlobalToolConfiguration/index.groovy
...ources/jenkins/tools/GlobalToolConfiguration/index.groovy
+1
-5
未找到文件。
core/src/main/resources/hudson/PluginManager/advanced.jelly
浏览文件 @
d17e5594
...
...
@@ -29,14 +29,7 @@ THE SOFTWARE.
<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 title="${%Update Center}" permission="${app.SYSTEM_READ}">
<j:choose>
<j:when test="${app.hasPermission(app.ADMINISTER)}">
<j:set var="readOnlyMode" value="false" />
</j:when>
<j:otherwise>
<j:set var="readOnlyMode" value="true" />
</j:otherwise>
</j:choose>
<j:set var="readOnlyMode" value="${!app.hasPermission(app.ADMINISTER)}" />
<st:include page="sidepanel.jelly"/>
<l:main-panel>
<local:tabBar page="advanced" xmlns:local="/hudson/PluginManager"/>
...
...
core/src/main/resources/hudson/PluginManager/installed.jelly
浏览文件 @
d17e5594
...
...
@@ -28,14 +28,7 @@ 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:t="/lib/hudson" xmlns:s="/lib/form">
<l:layout title="${%Update Center}" permission="${app.SYSTEM_READ}">
<j:choose>
<j:when test="${app.hasPermission(app.ADMINISTER)}">
<j:set var="readOnlyMode" value="false" />
</j:when>
<j:otherwise>
<j:set var="readOnlyMode" value="true" />
</j:otherwise>
</j:choose>
<j:set var="readOnlyMode" value="${!app.hasPermission(app.ADMINISTER)}" />
<st:include page="sidepanel.jelly"/>
<l:main-panel>
<st:adjunct includes="hudson.PluginManager._table"/>
...
...
core/src/main/resources/hudson/ProxyConfiguration/config.groovy
浏览文件 @
d17e5594
...
...
@@ -3,9 +3,7 @@ package hudson.ProxyConfiguration
def
f
=
namespace
(
lib
.
FormTagLib
)
def
l
=
namespace
(
lib
.
LayoutTagLib
)
if
(!
h
.
hasPermission
(
app
.
ADMINISTER
))
{
set
(
"readOnlyMode"
,
"true"
)
}
set
(
"readOnlyMode"
,
!
h
.
hasPermission
(
app
.
ADMINISTER
))
f
.
entry
(
title:
_
(
"Server"
),
field:
"name"
)
{
f
.
textbox
()
...
...
core/src/main/resources/hudson/model/Job/configure.jelly
浏览文件 @
d17e5594
...
...
@@ -29,15 +29,7 @@ THE SOFTWARE.
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:l="/lib/layout" xmlns:f="/lib/form">
<l:layout type="one-column" permission="${it.EXTENDED_READ}" title="${%Config(it.displayName)}">
<j:choose>
<j:when test="${it.hasPermission(it.CONFIGURE)}">
<j:set var="readOnlyMode" value="false" />
</j:when>
<j:otherwise>
<j:set var="readOnlyMode" value="true" />
</j:otherwise>
</j:choose>
<j:set var="readOnlyMode" value="${!it.hasPermission(it.CONFIGURE)}" />
<l:js src="jsbundles/config-scrollspy.js" />
<l:css src="jsbundles/config-scrollspy.css" />
...
...
core/src/main/resources/hudson/security/GlobalSecurityConfiguration/index.groovy
浏览文件 @
d17e5594
...
...
@@ -17,9 +17,7 @@ l.layout(permission:app.SYSTEM_READ, title:my.displayName, cssclass:request.getP
l
.
icon
(
class
:
'
icon
-
secure
icon
-
xlg
'
)
text
(
my
.
displayName
)
}
if
(!
h
.
hasPermission
(
app
.
ADMINISTER
))
{
set
(
"readOnlyMode"
,
"true"
)
}
set
(
"readOnlyMode"
,
!
h
.
hasPermission
(
app
.
ADMINISTER
))
p
()
div
(
class
:"
behavior
-
loading
", _("
LOADING
"
))
...
...
core/src/main/resources/jenkins/tools/GlobalToolConfiguration/index.groovy
浏览文件 @
d17e5594
...
...
@@ -7,11 +7,6 @@ def f=namespace(lib.FormTagLib)
def
l
=
namespace
(
lib
.
LayoutTagLib
)
def
st
=
namespace
(
"jelly:stapler"
)
if
(!
Functions
.
hasPermission
(
app
.
ADMINISTER
))
{
set
(
"readOnlyMode"
,
"true"
)
}
l
.
layout
(
permission:
app
.
SYSTEM_READ
,
title:
my
.
displayName
)
{
l
.
side_panel
{
l
.
tasks
{
...
...
@@ -19,6 +14,7 @@ l.layout(permission:app.SYSTEM_READ, title:my.displayName) {
l
.
task
(
icon:
"icon-gear2 icon-md"
,
href:
"${rootURL}/manage"
,
title:
_
(
"Manage Jenkins"
))
}
}
set
(
"readOnlyMode"
,
!
h
.
hasPermission
(
app
.
ADMINISTER
))
l
.
main_panel
{
h1
{
l
.
icon
(
class
:
'
icon
-
setting
icon
-
xlg
'
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录