File tree 8 files changed +15
-1
lines changed 8 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 30
30
<td>{{DateUtils.AbsoluteShort .CreatedUnix}}</td>
31
31
<td><a href="{{AppSubUrl}}/-/admin/auths/{{.ID}}">{{svg "octicon-pencil"}}</a></td>
32
32
</tr>
33
+ {{else}}
34
+ <tr><td class="tw-text-center" colspan="7">{{ctx.Locale.Tr "no_results_found"}}</td></tr>
33
35
{{end}}
34
36
</tbody>
35
37
</table>
Original file line number Diff line number Diff line change 67
67
>{{svg "octicon-trash"}}</a>
68
68
</td>
69
69
</tr>
70
+ {{else}}
71
+ <tr><td class="tw-text-center" colspan="6">{{ctx.Locale.Tr "no_results_found"}}</td></tr>
70
72
{{end}}
71
73
</tbody>
72
74
</table>
Original file line number Diff line number Diff line change 24
24
<td nowrap>{{DateUtils.AbsoluteShort .CreatedUnix}}</td>
25
25
<td class="view-detail"><a href="#">{{svg "octicon-note" 16}}</a></td>
26
26
</tr>
27
+ {{else}}
28
+ <tr><td class="tw-text-center" colspan="6">{{ctx.Locale.Tr "no_results_found"}}</td></tr>
27
29
{{end}}
28
30
</tbody>
29
31
{{if .Notices}}
Original file line number Diff line number Diff line change 66
66
<td>{{DateUtils.AbsoluteShort .CreatedUnix}}</td>
67
67
<td><a href="{{.OrganisationLink}}/settings" data-tooltip-content="{{ctx.Locale.Tr "edit"}}">{{svg "octicon-pencil"}}</a></td>
68
68
</tr>
69
+ {{else}}
70
+ <tr><td class="tw-text-center" colspan="7">{{ctx.Locale.Tr "no_results_found"}}</td></tr>
69
71
{{end}}
70
72
</tbody>
71
73
</table>
Original file line number Diff line number Diff line change 74
74
<td>{{DateUtils.AbsoluteShort .Version.CreatedUnix}}</td>
75
75
<td><a class="delete-button" href="" data-url="{{$.Link}}/delete?page={{$.Page.Paginater.Current}}&sort={{$.SortType}}" data-id="{{.Version.ID}}" data-name="{{.Package.Name}}" data-data-version="{{.Version.Version}}">{{svg "octicon-trash"}}</a></td>
76
76
</tr>
77
+ {{else}}
78
+ <tr><td class="tw-text-center" colspan="10">{{ctx.Locale.Tr "no_results_found"}}</td></tr>
77
79
{{end}}
78
80
</tbody>
79
81
</table>
Original file line number Diff line number Diff line change 86
86
<td>{{DateUtils.AbsoluteShort .CreatedUnix}}</td>
87
87
<td><a class="delete-button" href="" data-url="{{$.Link}}/delete?page={{$.Page.Paginater.Current}}&sort={{$.SortType}}" data-id="{{.ID}}" data-name="{{.Name}}">{{svg "octicon-trash"}}</a></td>
88
88
</tr>
89
+ {{else}}
90
+ <tr><td class="tw-text-center" colspan="12">{{ctx.Locale.Tr "no_results_found"}}</td></tr>
89
91
{{end}}
90
92
</tbody>
91
93
</table>
Original file line number Diff line number Diff line change 109
109
</div>
110
110
</td>
111
111
</tr>
112
+ {{else}}
113
+ <tr class="no-results-row"><td class="tw-text-center" colspan="9">{{ctx.Locale.Tr "no_results_found"}}</td></tr>
112
114
{{end}}
113
115
</tbody>
114
116
</table>
Original file line number Diff line number Diff line change @@ -279,7 +279,7 @@ func TestLDAPUserSyncWithEmptyUsernameAttribute(t *testing.T) {
279
279
280
280
htmlDoc := NewHTMLParser (t , resp .Body )
281
281
282
- tr := htmlDoc .doc .Find ("table.table tbody tr" )
282
+ tr := htmlDoc .doc .Find ("table.table tbody tr:not(.no-results-row) " )
283
283
assert .Equal (t , 0 , tr .Length ())
284
284
}
285
285
You can’t perform that action at this time.
0 commit comments