Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
LinuxSuRen
jenkins
提交
5301b262
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,发现更多精彩内容 >>
提交
5301b262
编写于
3月 05, 2012
作者:
K
Kohsuke Kawaguchi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Added a mechanism to exclude <l:task> from context menu. Used it to remove some menu items.
上级
b22cfd5d
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
19 addition
and
15 deletion
+19
-15
changelog.html
changelog.html
+2
-0
core/src/main/resources/hudson/model/AbstractBuild/sidepanel.jelly
...main/resources/hudson/model/AbstractBuild/sidepanel.jelly
+2
-2
core/src/main/resources/hudson/model/AbstractBuild/tasks.jelly
...src/main/resources/hudson/model/AbstractBuild/tasks.jelly
+2
-2
core/src/main/resources/hudson/model/AbstractProject/sidepanel.jelly
...in/resources/hudson/model/AbstractProject/sidepanel.jelly
+2
-2
core/src/main/resources/hudson/model/Computer/sidepanel.jelly
.../src/main/resources/hudson/model/Computer/sidepanel.jelly
+2
-2
core/src/main/resources/hudson/model/ExternalRun/sidepanel.jelly
...c/main/resources/hudson/model/ExternalRun/sidepanel.jelly
+1
-1
core/src/main/resources/hudson/model/Label/sidepanel.jelly
core/src/main/resources/hudson/model/Label/sidepanel.jelly
+2
-2
core/src/main/resources/hudson/model/User/sidepanel.jelly
core/src/main/resources/hudson/model/User/sidepanel.jelly
+2
-2
core/src/main/resources/lib/layout/task.jelly
core/src/main/resources/lib/layout/task.jelly
+4
-2
未找到文件。
changelog.html
浏览文件 @
5301b262
...
...
@@ -61,6 +61,8 @@ Upcoming changes</a>
<li
class=
bug
>
Some of the context menu items have wrong links
(
<a
href=
"https://issues.jenkins-ci.org/browse/JENKINS-12945"
>
issue 12945
</a>
)
<li
class=
rfe
>
Removed entries that don't make sense from the context menu
<li
class=
rfe
>
Enable automatic hyperlinking on failed test summary.
(
<a
href=
"https://github.com/jenkinsci/jenkins/pull/392"
>
pull 392
</a>
)
...
...
core/src/main/resources/hudson/model/AbstractBuild/sidepanel.jelly
浏览文件 @
5301b262
...
...
@@ -34,10 +34,10 @@ THE SOFTWARE.
<st:include page="tasks.jelly"/>
<st:include page="actions.jelly" />
<j:if test="${it.previousBuild!=null}">
<l:task icon="images/24x24/previous.png" href="${buildUrl.previousBuildUrl}" title="${%Previous Build}" />
<l:task icon="images/24x24/previous.png" href="${buildUrl.previousBuildUrl}" title="${%Previous Build}"
contextMenu="false"
/>
</j:if>
<j:if test="${it.nextBuild!=null}">
<l:task icon="images/24x24/next.png" href="${buildUrl.nextBuildUrl}" title="${%Next Build}" />
<l:task icon="images/24x24/next.png" href="${buildUrl.nextBuildUrl}" title="${%Next Build}"
contextMenu="false"
/>
</j:if>
</l:tasks>
</l:side-panel>
...
...
core/src/main/resources/hudson/model/AbstractBuild/tasks.jelly
浏览文件 @
5301b262
...
...
@@ -27,8 +27,8 @@ 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:f="/lib/form" xmlns:i="jelly:fmt">
<l:task icon="images/24x24/up.png" href="${it.upUrl}" title="${%Back to Project}" />
<l:task icon="images/24x24/search.png" href="${buildUrl.baseUrl}/" title="${%Status}" />
<l:task icon="images/24x24/up.png" href="${it.upUrl}" title="${%Back to Project}"
contextMenu="false"
/>
<l:task icon="images/24x24/search.png" href="${buildUrl.baseUrl}/" title="${%Status}"
contextMenu="false"
/>
<l:task icon="images/24x24/notepad.png" href="${buildUrl.baseUrl}/changes" title="${%Changes}" />
<j:choose>
<j:when test="${it.logFile.length() > 200000}">
...
...
core/src/main/resources/hudson/model/AbstractProject/sidepanel.jelly
浏览文件 @
5301b262
...
...
@@ -37,8 +37,8 @@ THE SOFTWARE.
<l:side-panel>
<l:tasks>
<j:set var="url" value="${h.getNearestAncestorUrl(request,it)}"/>
<l:task icon="images/24x24/up.png" href="${rootURL}/" title="${%Back to Dashboard}" />
<l:task icon="images/24x24/search.png" href="${url}/" title="${%Status}" />
<l:task icon="images/24x24/up.png" href="${rootURL}/" title="${%Back to Dashboard}"
contextMenu="false"
/>
<l:task icon="images/24x24/search.png" href="${url}/" title="${%Status}"
contextMenu="false"
/>
<l:task icon="images/24x24/notepad.png" href="${url}/changes" title="${%Changes}" />
<l:task icon="images/24x24/folder.png" href="${url}/ws/" title="${%Workspace}" permission="${it.WORKSPACE}">
<l:task icon="images/24x24/folder-delete.png" href="${url}/wipeOutWorkspace" title="${%Wipe Out Workspace}" permission="${h.isWipeOutPermissionEnabled() ? it.WIPEOUT : it.BUILD}" />
...
...
core/src/main/resources/hudson/model/Computer/sidepanel.jelly
浏览文件 @
5301b262
...
...
@@ -30,8 +30,8 @@ THE SOFTWARE.
<l:header />
<l:side-panel>
<l:tasks>
<l:task icon="images/24x24/up.png" href=".." title="${%Back to List}" />
<l:task icon="images/24x24/search.png" href="${rootURL}/${it.url}" title="${%Status}" />
<l:task icon="images/24x24/up.png" href=".." title="${%Back to List}"
contextMenu="false"
/>
<l:task icon="images/24x24/search.png" href="${rootURL}/${it.url}" title="${%Status}"
contextMenu="false"
/>
<l:task icon="images/24x24/edit-delete.png" href="delete" title="${%Delete Slave}" permission="${it.DELETE}" />
<l:task icon="images/24x24/setting.png" href="configure" title="${%Configure}" permission="${it.CONFIGURE}" />
<l:task icon="images/24x24/notepad.png" href="builds" title="${%Build History}" />
...
...
core/src/main/resources/hudson/model/ExternalRun/sidepanel.jelly
浏览文件 @
5301b262
...
...
@@ -30,7 +30,7 @@ THE SOFTWARE.
<l:header title="${it.fullDisplayName}" />
<l:side-panel>
<l:tasks>
<l:task icon="images/24x24/up.png" href="${rootURL}/${it.parent.url}" title="${%Back to Job}" />
<l:task icon="images/24x24/up.png" href="${rootURL}/${it.parent.url}" title="${%Back to Job}"
contextMenu="false"
/>
<l:task icon="images/24x24/terminal.png" href="." title="${%Console Output}" />
<j:if test="${(!h.isArtifactsPermissionEnabled() or h.isArtifactsPermissionEnabled() and h.hasPermission(it,attrs.permission)) and it.hasArtifacts}">
<l:task icon="images/24x24/package.png" href="artifacts-index" title="${%Artifacts}" />
...
...
core/src/main/resources/hudson/model/Label/sidepanel.jelly
浏览文件 @
5301b262
...
...
@@ -30,8 +30,8 @@ THE SOFTWARE.
<l:header title="Label ${it.displayName}" />
<l:side-panel>
<l:tasks>
<l:task icon="images/24x24/up.png" href="${rootURL}/" title="${%Back to Dashboard}" />
<l:task icon="images/24x24/computer.png" href="." title="${%Overview}" />
<l:task icon="images/24x24/up.png" href="${rootURL}/" title="${%Back to Dashboard}"
contextMenu="false"
/>
<l:task icon="images/24x24/computer.png" href="." title="${%Overview}"
contextMenu="false"
/>
<l:task icon="images/24x24/monitor.png" href="load-statistics" title="${%Load Statistics}" />
<st:include page="actions.jelly" />
</l:tasks>
...
...
core/src/main/resources/hudson/model/User/sidepanel.jelly
浏览文件 @
5301b262
...
...
@@ -30,8 +30,8 @@ THE SOFTWARE.
<l:header />
<l:side-panel>
<l:tasks>
<l:task icon="images/24x24/up.png" href="${rootURL}/people/" title="${%People}" />
<l:task icon="images/24x24/search.png" href="${rootURL}/${it.url}/" title="${%Status}" />
<l:task icon="images/24x24/up.png" href="${rootURL}/people/" title="${%People}"
contextMenu="false"
/>
<l:task icon="images/24x24/search.png" href="${rootURL}/${it.url}/" title="${%Status}"
contextMenu="false"
/>
<l:task icon="images/24x24/notepad.png" href="${rootURL}/${it.url}/builds" title="${%Builds}" />
<l:task icon="images/24x24/notepad.png" href="${rootURL}/${it.url}/my-views/" title="${%My Views}" />
<l:task icon="images/24x24/setting.png" href="${rootURL}/${it.url}/configure" title="${%Configure}" permission="${app.ADMINISTER}" />
...
...
core/src/main/resources/lib/layout/task.jelly
浏览文件 @
5301b262
...
...
@@ -46,6 +46,9 @@ THE SOFTWARE.
<st:attribute name="enabled">
If specified, then this controls whether the task is enabled or not.
</st:attribute>
<st:attribute name="contextMenu" type="boolean">
If "false", remove this item from the context menu.
</st:attribute>
<st:attribute name="permission">
If specified, the link will be only displayed when the current user
has the specified permission against the "it" object.
...
...
@@ -95,8 +98,7 @@ THE SOFTWARE.
<j:otherwise>
<div class="task">
<j:set var="icon" value="${rootURL}${icon.startsWith('images/') ? h.resourcePath : ''}/${icon}"/>
${taskTags!=null ? taskTags.add(href,icon,title) : null}
${taskTags}
${taskTags!=null and attrs.contextMenu!='false' ? taskTags.add(href,icon,title) : null}
<a href="${href}" onclick="${attrs.onclick}">
<img width="24" height="24" style="margin: 2px;" alt="" src="${icon}"/>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录