Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
jenkins
提交
6a78160a
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,发现更多精彩内容 >>
提交
6a78160a
编写于
4月 11, 2019
作者:
N
Nicolae Pascu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add title attributes to copy and revoke action icons
上级
162cdc0f
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
14 addition
and
10 deletion
+14
-10
core/src/main/resources/jenkins/security/ApiTokenProperty/config.jelly
.../resources/jenkins/security/ApiTokenProperty/config.jelly
+3
-3
core/src/main/resources/jenkins/security/ApiTokenProperty/config.properties
...urces/jenkins/security/ApiTokenProperty/config.properties
+1
-0
core/src/main/resources/lib/layout/copyButton.jelly
core/src/main/resources/lib/layout/copyButton.jelly
+2
-3
core/src/main/resources/lib/layout/svg-icon-token-revoke.jelly
...src/main/resources/lib/layout/svg-icon-token-revoke.jelly
+8
-4
未找到文件。
core/src/main/resources/jenkins/security/ApiTokenProperty/config.jelly
浏览文件 @
6a78160a
...
...
@@ -108,7 +108,7 @@ THE SOFTWARE.
data-message-if-legacy-revoked=
"${%RevokedToken}"
data-confirm=
"${%ConfirmRevokeSingle}"
data-target-url=
"${descriptor.descriptorFullUrl}/revoke"
>
<
st:include
page=
"/lib/layout/svg-icon-token-revoke.jelly
"
/>
<
l:svg-icon-token-revoke
title=
"${%RevokeToken}
"
/>
</a>
</span>
</div>
...
...
@@ -130,9 +130,9 @@ THE SOFTWARE.
<a
href=
"#"
onclick=
"return revokeToken(this)"
class=
"token-revoke hidden-button"
data-confirm=
"${%ConfirmRevokeSingle}"
data-target-url=
"${descriptor.descriptorFullUrl}/revoke"
>
<
st:include
page=
"/lib/layout/svg-icon-token-revoke.jelly
"
/>
<
l:svg-icon-token-revoke
title=
"${%RevokeToken}
"
/>
</a>
<l:copyButton
message=
"${%Copied}"
text=
""
clazz=
"invisible"
/>
<l:copyButton
message=
"${%Copied}"
text=
""
clazz=
"invisible"
tooltip=
"${%CopyToken}"
/>
<div
class=
"error token-error-message"
>
<!-- filled in case of error -->
</div>
<div
class=
"warning display-after-generation"
>
${%TokenDisplayedOnce}
</div>
</div>
...
...
core/src/main/resources/jenkins/security/ApiTokenProperty/config.properties
浏览文件 @
6a78160a
...
...
@@ -2,6 +2,7 @@ TokenDisplayedOnce=Copy this token now, because it cannot be recovered in the fu
AddNewToken
=
Add new Token
GenerateNewToken
=
Generate
RevokeToken
=
Revoke this token
CopyToken
=
Copy this token
NoTokenYet
=
There are no registered tokens for this user.
TokenLastUse
=
Used <b>{0}</b> time(s), last time was <b>{1}</b> day(s) ago
StatisticsDisabled
=
No statistics available
...
...
core/src/main/resources/lib/layout/copyButton.jelly
浏览文件 @
6a78160a
...
...
@@ -29,8 +29,7 @@ THE SOFTWARE.
Creates a small button that lets the user copies a text into clipboard
<st:attribute name="tooltip">
Tooltip of the button. Currently this doesn't work as reliably as we'd like.
More ZeroClipboard hacking is likely necessary.
Tooltip of the button.
</st:attribute>
<st:attribute name="text" use="required">
Text to be copied into the clipboard.
...
...
@@ -53,7 +52,7 @@ THE SOFTWARE.
</st:attribute>
</st:documentation>
<span class="copy-button ${attrs.clazz}" t
ooltip
="${attrs.tooltip}" text="${attrs.text}"
<span class="copy-button ${attrs.clazz}" t
itle
="${attrs.tooltip}" text="${attrs.text}"
message="${attrs.message}" container="${attrs.container}" style="${attrs.style}">
<input type="button"/>
</span>
...
...
core/src/main/resources/lib/layout/svg-icon-token-revoke.jelly
浏览文件 @
6a78160a
...
...
@@ -26,11 +26,15 @@ THE SOFTWARE.
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:l="/lib/layout">
<st:documentation>
Icon used for revoking the token in the user config screen
<st:attribute name="title">
Title for the icon.
</st:attribute>
</st:documentation>
<svg class="token-revoke-icon" width="22" height="24" viewBox="0 0 22 24" xmlns="http://www.w3.org/2000/svg">
<g fill="none" fill-rule="evenodd">
<path d="M9.753 15.32H3.07v2.042h6.65v3.064H2.559A2.556 2.556 0 0 1 0 17.872V2.553A2.556 2.556 0 0 1 2.558 0H15.86a2.556 2.556 0 0 1 2.559 2.553v9.192h-4.605a4.091 4.091 0 0 0-4.061 3.574zM3.07 5.105h5.628V3.064H3.07v2.042zm0 4.085h11.256V7.15H3.07V9.19zm0 4.086h6.14v-2.043H3.07v2.043z" fill="#788594"/>
<path d="M14.326 13.787h5.116A2.556 2.556 0 0 1 22 16.34v5.107A2.556 2.556 0 0 1 19.442 24h-5.116a2.556 2.556 0 0 1-2.559-2.553V16.34a2.556 2.556 0 0 1 2.559-2.553zm4.545 2.043l-1.987 1.984-1.988-1.984-1.082 1.08 1.988 1.984-1.988 1.983 1.082 1.08 1.988-1.983 1.987 1.983 1.082-1.08-1.987-1.983 1.987-1.984-1.082-1.08z" fill="#B33127"/>
</g>
<title>${attrs.title}</title>
<g fill="none" fill-rule="evenodd">
<path d="M9.753 15.32H3.07v2.042h6.65v3.064H2.559A2.556 2.556 0 0 1 0 17.872V2.553A2.556 2.556 0 0 1 2.558 0H15.86a2.556 2.556 0 0 1 2.559 2.553v9.192h-4.605a4.091 4.091 0 0 0-4.061 3.574zM3.07 5.105h5.628V3.064H3.07v2.042zm0 4.085h11.256V7.15H3.07V9.19zm0 4.086h6.14v-2.043H3.07v2.043z" fill="#788594"/>
<path d="M14.326 13.787h5.116A2.556 2.556 0 0 1 22 16.34v5.107A2.556 2.556 0 0 1 19.442 24h-5.116a2.556 2.556 0 0 1-2.559-2.553V16.34a2.556 2.556 0 0 1 2.559-2.553zm4.545 2.043l-1.987 1.984-1.988-1.984-1.082 1.08 1.988 1.984-1.988 1.983 1.082 1.08 1.988-1.983 1.987 1.983 1.082-1.08-1.987-1.983 1.987-1.984-1.082-1.08z" fill="#B33127"/>
</g>
</svg>
</j:jelly>
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录