提交 6a78160a 编写于 作者: N Nicolae Pascu

add title attributes to copy and revoke action icons

上级 162cdc0f
......@@ -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>
......
......@@ -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
......
......@@ -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}" tooltip="${attrs.tooltip}" text="${attrs.text}"
<span class="copy-button ${attrs.clazz}" title="${attrs.tooltip}" text="${attrs.text}"
message="${attrs.message}" container="${attrs.container}" style="${attrs.style}">
<input type="button"/>
</span>
......
......@@ -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.
先完成此消息的编辑!
想要评论请 注册