-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
[JENKINS-43786] Overhaul of Manage Jenkins page #2857
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
7dbaf5f
52654eb
d8b4526
8774f3c
beaf805
7dd0429
a4b4771
427ab29
7de4a81
5c14800
672af73
8126460
9485c88
31bfe00
bcae594
20461b2
317c734
e93c464
9f2304a
077bbd8
b3acf08
af73959
a398fff
4735288
a93b2d6
bae6127
cc25e51
f49131b
849938f
9a175ab
4641644
d6395f1
5fc308d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -39,7 +39,7 @@ SystemInfoLink.DisplayName=System Information | |
| SystemInfoLink.Description=Displays various environmental information to assist trouble-shooting. | ||
|
|
||
| SystemLogLink.DisplayName=System Log | ||
| SystemLogLink.Description=System log captures output from <tt>java.util.logging</tt> output related to Jenkins. | ||
| SystemLogLink.Description=System log captures output from <code>java.util.logging</code> output related to Jenkins. | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Unrelated but |
||
|
|
||
| StatisticsLink.DisplayName=Load Statistics | ||
| StatisticsLink.Description=Check your resource utilization and see if you need more computers for your builds. | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -27,16 +27,16 @@ 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"> | ||
| <l:layout title="${%Manage Jenkins}" xmlns:local="local" permission="${app.ADMINISTER}"> | ||
| <l:layout title="${%Manage Jenkins}" xmlns:local="local" permission="${app.ADMINISTER}" css="/bootstrap/css/bootstrap.min.css"> | ||
|
|
||
| <d:taglib uri="local"> | ||
| <!-- table to show a map --> | ||
| <d:tag name="feature"> | ||
| <j:set var="iconUrl" value="${icon.startsWith('/') ? resURL+icon : imagesURL+'/48x48/'+icon}"/> | ||
| ${taskTags!=null and attrs.contextMenu!='false' ? taskTags.add(href,iconUrl,title,post,requiresConfirmation) : null} | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This line was removed without replacement.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Indeed it looks like |
||
| <!-- TODO summary.jelly should be modified to accept requiresConfirmation so the icon link can be included --> | ||
| <j:set var="_href" value="${href}"/> | ||
| <t:summary icon="${icon}" | ||
| href="${requiresConfirmation || post ? null : href}" iconOnly="true"> | ||
| <t:summary icon="${icon}" href="${requiresConfirmation || post ? null : href}" iconOnly="true"> | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Easier to read. |
||
| <div class="link"> | ||
| <j:choose> | ||
| <j:when test="${requiresConfirmation}"> | ||
|
|
@@ -57,6 +57,7 @@ THE SOFTWARE. | |
| <j:if test="${taskTags==null}"> | ||
| <st:include page="sidepanel.jelly" /> | ||
| </j:if> | ||
|
|
||
| <l:main-panel> | ||
| <h1>${%Manage Jenkins}</h1> | ||
|
|
||
|
|
@@ -68,12 +69,76 @@ THE SOFTWARE. | |
|
|
||
| <st:include page="downgrade.jelly" /> | ||
|
|
||
| <table style="padding-left: 2em;" id="management-links"> | ||
| <style type="text/css"> | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The final definition will be placed on the proper CSS file. |
||
| .manage-option { | ||
| border: 1px solid transparent; | ||
| margin-bottom: 4px; | ||
| } | ||
| .manage-option:hover { | ||
| border: 1px solid #ccc; | ||
| border-radius: 3px; | ||
| background-color: #fafafa; | ||
| } | ||
| .manage-option dl { | ||
| padding: 0; | ||
| margin: 0 0 0 62px; | ||
| min-height: 48px; | ||
| } | ||
| .manage-option dl dt { | ||
| font-size: 16px; | ||
| line-height: 24px; | ||
| } | ||
| .manage-option dl dd { | ||
| margin-left: 0; | ||
| line-height: 20px; | ||
| color: #333; | ||
| font-size: 14px; | ||
| } | ||
|
|
||
| .manage-option a, .manage-option a:visited { | ||
| display: block; | ||
| padding: 8px; | ||
| margin: 0; | ||
| text-decoration: none; | ||
| color: #000; | ||
| outline: 0; | ||
| } | ||
| .manage-option .icon { | ||
| display: block; | ||
| float: left; | ||
| position: relative; | ||
| width: 48px; | ||
| height: 48px; | ||
| } | ||
|
|
||
| </style> | ||
|
|
||
| <j:forEach var="m" items="${it.managementLinks}"> | ||
| <l:hasPermission permission="${m.requiredPermission}"> | ||
| <j:set var="icon" value="${m.iconClassName != null ? m.iconClassName : m.iconFileName}" /> | ||
| <j:if test="${icon!=null}"> | ||
| <div class="manage-option"> | ||
| <a href="${m.urlName}" title=""> | ||
| <j:set var="iconUrl" value="${icon.startsWith('/') ? resURL+icon : imagesURL + '/48x48/' + icon}" /> | ||
| <img class="icon" src="${iconUrl}" /> | ||
| <dl> | ||
| <dt>${m.displayName}</dt> | ||
| <dd><j:out value="${m.description}"/></dd> | ||
| <dd><st:include it="${m}" page="info.jelly" optional="true"/></dd> | ||
| </dl> | ||
| </a> | ||
| </div> | ||
| </j:if> | ||
| </l:hasPermission> | ||
| </j:forEach> | ||
|
|
||
|
|
||
| <table style="padding-left: 2em; display: none;" id="management-links"> | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It will be removed. It is still here for testing purposes.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Given this block of code will be removed, this functional test needs to reviewed.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. And maybe this code. |
||
| <j:forEach var="m" items="${it.managementLinks}"> | ||
| <l:hasPermission permission="${m.requiredPermission}"> | ||
| <j:set var="icon" value="${m.iconClassName != null ? m.iconClassName : m.iconFileName}"/> | ||
| <j:if test="${icon!=null}"> | ||
| <local:feature icon="${icon}" href="${m.urlName}" title="${m.displayName}" requiresConfirmation="${m.requiresConfirmation}" post="${m.requiresPOST}"> | ||
| <local:feature icon="${icon}" href="${m.urlName}" title="${m.displayName}" requiresConfirmation="${m.requiresConfirmation}" post="${m.requiresPOST}"> | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Unnecessary spaces.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @daniel-beck Do you know any case where
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @oleg-nenashev And you? Could you help me?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @recena AFAIK it cannot be used elsewhere outside this file
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @oleg-nenashev What I really wanted was to know how exercising this taglib. Some use-case.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @recena Reusability for less repetition, see https://github.com/recena/jenkins/blob/6d119ef16946312d8c4ca319babb2e2b292b9b79/core/src/main/resources/jenkins/model/Jenkins/manage.jelly. The October 2012 changes converted those to
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @daniel-beck I appreciate your feedback. Can I understand we could make a cleanup?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Assuming by cleanup you mean inlining the tag, yes. |
||
| <j:out value="${m.description}"/> | ||
| <st:include it="${m}" page="info.jelly" optional="true"/> | ||
| </local:feature> | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are not typos.
iff is shorthand for if and only if, see e.g. http://www.dictionary.com/browse/iff
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My bad English. Thanks for noticing it.