Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Remove extraneous span elements

Alexander Brandon Colesed3df7f2cc05
diff --git a/frontend/src/app/shared/components/table-pagination/table-pagination.component.html b/frontend/src/app/shared/components/table-pagination/table-pagination.component.html
index 4a777c6d1c3..6a50ba97378 100644
--- a/frontend/src/app/shared/components/table-pagination/table-pagination.component.html
+++ b/frontend/src/app/shared/components/table-pagination/table-pagination.component.html
@@ -81,7 +81,7 @@
</button>
</li>
<li class="op-pagination--range">
- <span [textContent]="currentRange"></span>
+ {{currentRange}}
<span *ngIf="pageNumbers.length === 1"
id="op-pagination-empty-text"
tabindex="0"
@@ -109,15 +109,14 @@
*ngFor="let perPageOption of perPageOptions"
class="op-pagination--item"
[ngClass]="{ 'op-pagination--item_current': perPageOption === pagination.perPage }">
- <span *ngIf="perPageOption !== pagination.perPage">
- <button
- class="op-pagination--item-link"
- type="button"
- (click)="selectPerPage(perPageOption)"
- [textContent]="perPageOption"
- [attr.aria-label]="text.show_per_page(perPageOption)"
- ></button>
- </span>
+ <button
+ *ngIf="perPageOption !== pagination.perPage"
+ class="op-pagination--item-link"
+ type="button"
+ (click)="selectPerPage(perPageOption)"
+ [textContent]="perPageOption"
+ [attr.aria-label]="text.show_per_page(perPageOption)"
+ ></button>
<span *ngIf="perPageOption === pagination.perPage"
tabindex="0"
aria-current="true"