Skip to content
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

Restyle the tables and inline the new files filter #98

Merged
merged 1 commit into from
Mar 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@
<dependency>
<groupId>io.jenkins.plugins</groupId>
<artifactId>data-tables-api</artifactId>
<version>2.0.1-1</version>
</dependency>
<dependency>
<groupId>io.jenkins.plugins</groupId>
Expand Down
27 changes: 15 additions & 12 deletions plugin/src/main/resources/coverage/coverage-table.jelly
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,20 @@
<j:when test="${it.hasSourceCode()}">
<div class="col-12 d-xxl-none">
<bs:card title="${title}" symbol="${symbol}" class="flex-fill h-100" >
<j:if test="${showChangedToggle}">
<f:toggleSwitch id="changed-${id + '-table'}" title="${%changed.files}" />
</j:if>
<dt:table model="${it.getTableModel(id + '-table')}"/>
<dt:table model="${it.getTableModel(id + '-table')}">
<j:if test="${showChangedToggle}">
<f:toggleSwitch id="changed-${id + '-table'}" title="${%changed.files}" />
</j:if>
</dt:table>
</bs:card>
</div>
<div class="col-xxl-6 d-none d-xxl-block">
<bs:card title="${title}" symbol="${symbol}" class="flex-fill h-100">
<j:if test="${showChangedToggle}">
<f:toggleSwitch id="changed-${id + '-table-inline'}" title="${%changed.files}" />
</j:if>
<dt:table model="${it.getTableModel(id + '-table-inline')}"/>
<dt:table model="${it.getTableModel(id + '-table-inline')}">
<j:if test="${showChangedToggle}">
<f:toggleSwitch id="changed-${id + '-table-inline'}" title="${%changed.files}" />
</j:if>
</dt:table>
</bs:card>
</div>
<div class="col-xxl-6 d-none d-xxl-block">
Expand Down Expand Up @@ -66,11 +68,12 @@
</j:when>
<j:otherwise>
<div class="col-12">
<j:if test="${showChangedToggle}">
<f:toggleSwitch id="changed-${id + '-table'}" title="${%changed.files}" />
</j:if>
<bs:card title="${title}" symbol="${symbol}" class="flex-fill h-100">
<dt:table model="${it.getTableModel(id + '-table')}"/>
<dt:table model="${it.getTableModel(id + '-table')}">
<j:if test="${showChangedToggle}">
<f:toggleSwitch id="changed-${id + '-table'}" title="${%changed.files}"/>
</j:if>
</dt:table>
</bs:card>
</div>

Expand Down
Loading