Skip to content

Commit

Permalink
update badge documentation (#8469)
Browse files Browse the repository at this point in the history
* badge documentation

Include in the badge documentation that it can be used in <l:task links

Set type for the badge attribute of lib/form/task

* fix javadoc
  • Loading branch information
mawinter69 authored Sep 9, 2023
1 parent 830cb8a commit 54c79f1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions core/src/main/java/jenkins/management/Badge.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@
* A badge might display the same information as an {@link AdministrativeMonitor}. While an {@link AdministrativeMonitor}
* can be disabled, a badge will always be shown. E.g. the badge of {@link OldDataMonitor.ManagementLinkImpl} always shows the number of old data entries.
*
* <p>
* A badge can also be used in a {@code <l:task .../>} to show information on the right of the link in the sidepanel,
* e.g. to show number of available plugin updates.
*
* @since 2.385
*/
@ExportedBean
Expand Down
4 changes: 2 additions & 2 deletions core/src/main/resources/lib/layout/task.jelly
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ THE SOFTWARE.
(onclick supersedes this except in the context menu.)
(since 1.512)
</st:attribute>
<st:attribute name="badge">
<st:attribute name="badge" type="jenkins.management.Badge">
If set, displays the value as a small badge on the right side of the sidepanel item.
@since TODO
(since 2.401)
</st:attribute>
<st:attribute name="confirmationMessage">
Message to use for confirmation, if requested; defaults to title.
Expand Down

0 comments on commit 54c79f1

Please sign in to comment.