Skip to content

Commit

Permalink
Read-only extended read view (jenkinsci#4479)
Browse files Browse the repository at this point in the history
* Read-only extended read view

* Namespace css, add selector for when read-only

Remove select changes

* Revert change that is no longer in use

* Format radioBlock

* Disable select

* Reduce diff and rename to read only

* More whitespace revert

* Add possibleReadOnlyField to wrap content

* Less diff

* Fix missing tag close

* New line

* Fix another if

* Change if statement to bail out early

* Remove drag and drop re-order when read only
  • Loading branch information
timja authored Feb 24, 2020
1 parent 3472e10 commit 450d874
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
9 changes: 9 additions & 0 deletions core/src/main/resources/hudson/model/Job/configure.jelly
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,15 @@ THE SOFTWARE.

<l:layout type="one-column" permission="${it.EXTENDED_READ}" title="${%Config(it.displayName)}">

<j:choose>
<j:when test="${app.hasPermission(it.CONFIGURE)}">
<j:set var="readOnlyMode" value="false" />
</j:when>
<j:otherwise>
<j:set var="readOnlyMode" value="true" />
</j:otherwise>
</j:choose>

<l:js src="jsbundles/config-scrollspy.js" />
<l:css src="jsbundles/config-scrollspy.css" />

Expand Down
4 changes: 4 additions & 0 deletions war/src/main/js/config-scrollspy.less
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
.section-header-row.config_general .section-header {
display: none;
}

td.setting-main {
line-height: 29px
}
}

.jenkins-config-widgets {
Expand Down

0 comments on commit 450d874

Please sign in to comment.