-
-
Notifications
You must be signed in to change notification settings - Fork 8.9k
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
JENKINS-65033 Run / Project summary - tables to divs #5351
Changes from all commits
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 |
---|---|---|
|
@@ -56,7 +56,7 @@ THE SOFTWARE. | |
<t:editableDescription permission="${it.UPDATE}" /> | ||
</div> | ||
|
||
<table style="margin-top: 1em; margin-left:1em;"> | ||
<div> | ||
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. Not sure how things are done with styling etc now in the modern times. But I think it would be nice if this div had an 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. not really sure why you would need them. themes should be able to use selectors and if they are finding a need for it they can add them at the time. |
||
<t:artifactList build="${it}" caption="${%Build Artifacts}" | ||
permission="${it.ARTIFACTS}" /> | ||
|
||
|
@@ -107,9 +107,11 @@ THE SOFTWARE. | |
|
||
<!-- give actions a chance to contribute summary item --> | ||
<j:forEach var="a" items="${it.allActions}"> | ||
<st:include page="summary.jelly" from="${a}" optional="true" it="${a}" /> | ||
<div style="margin-top: 1em;"> | ||
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. I'm guessing quite a lot more of breaking in plugins. 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. Pretty sure I tested BFA and it rendered fine, can double check later 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. Job page, browser allows the table and it looks the same as before: Run page, browser throws out the table tags, it looks fine except it's using a heading tag which is defined as a block element which moves it down a line We could maybe set an adjacent sibling selector to make headings display inline if after an Doesn't look like a blocker anyway to me, thoughts? 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. Nah, that looks OK. Hopefully it won't break things rendered after it, though I don't think it will since it closes it's table tags. |
||
<st:include page="summary.jelly" from="${a}" optional="true" it="${a}" /> | ||
</div> | ||
</j:forEach> | ||
</table> | ||
</div> | ||
|
||
<st:include page="main.jelly" optional="true" /> | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,17 +30,21 @@ THE SOFTWARE. | |
|
||
<p:projectActionFloatingBox /> | ||
|
||
<table style="margin-top: 1em; margin-left:1em;"> | ||
<div style="margin-top: 1em; margin-left:1em;"> | ||
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. maybe this one too? |
||
|
||
<j:forEach var="act" items="${it.prominentActions}"> | ||
<j:set var="icon" value="${act.iconClassName != null ? act.iconClassName : act.iconFileName}"/> | ||
<t:summary icon="${icon}" href="${act.urlName}"> | ||
${act.displayName} | ||
</t:summary> | ||
<div> | ||
<t:summary icon="${icon}" href="${act.urlName}"> | ||
${act.displayName} | ||
</t:summary> | ||
</div> | ||
</j:forEach> | ||
<t:summary icon="folder.png" href="ws/" permission="${it.WORKSPACE}"> | ||
${%Workspace} | ||
</t:summary> | ||
<div> | ||
<t:summary icon="folder.png" href="ws/" permission="${it.WORKSPACE}"> | ||
${%Workspace} | ||
</t:summary> | ||
</div> | ||
|
||
<t:artifactList caption="${%Last Successful Artifacts}" | ||
build="${it.lastSuccessfulBuild}" baseURL="lastSuccessfulBuild/" | ||
|
@@ -50,11 +54,13 @@ THE SOFTWARE. | |
${%Recent Changes} | ||
</t:summary> | ||
|
||
</table> | ||
</div> | ||
|
||
<!-- merge fragments from the actions --> | ||
<j:forEach var="a" items="${it.allActions}"> | ||
<st:include page="jobMain.jelly" it="${a}" optional="true" /> | ||
<div> | ||
<st:include page="jobMain.jelly" it="${a}" optional="true" /> | ||
</div> | ||
</j:forEach> | ||
|
||
<p:upstream-downstream /> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,13 +25,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"> | ||
<t:summary icon="orange-square.png"> | ||
${%Caused by} | ||
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. 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. Maybe a more explicit Not sure whats a good wording for it is. Personally I'm not a fan of the icon but that's outside the scope of this PR and with the new icons coming in this might be updated at some point. 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. Looks fine to me. |
||
<ul> | ||
<j:forEach var="entry" items="${it.causeCounts.entrySet()}"> | ||
<p> | ||
<st:include page="description.jelly" it="${entry.key}"/> | ||
<j:if test="${entry.value > 1}"> | ||
<st:nbsp/>${%Ntimes(entry.value)} | ||
</j:if> | ||
</p> | ||
<li> | ||
<st:include page="description.jelly" it="${entry.key}"/> | ||
<j:if test="${entry.value > 1}"> | ||
<st:nbsp/>${%Ntimes(entry.value)} | ||
</j:if> | ||
</li> | ||
</j:forEach> | ||
</ul> | ||
</t:summary> | ||
</j:jelly> |
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.
used in jenkinsci/workflow-job-plugin#180 to adapt to this change without requiring a core bump