Skip to content

Commit c1e010f

Browse files
committed
fix
1 parent 3ff4f94 commit c1e010f

File tree

9 files changed

+10
-10
lines changed

9 files changed

+10
-10
lines changed

templates/admin/auth/list.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<td><a href="{{AppSubUrl}}/-/admin/auths/{{.ID}}">{{svg "octicon-pencil"}}</a></td>
3232
</tr>
3333
{{end}}
34-
{{template "shared/no_results_found" (dict "rst" .Sources "colspan" 7)}}
34+
{{template "shared/no_results_found" (dict "results" .Sources "colspan" 7)}}
3535
</tbody>
3636
</table>
3737
</div>

templates/admin/emails/list.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
</td>
6969
</tr>
7070
{{end}}
71-
{{template "shared/no_results_found" (dict "rst" .Emails "colspan" 6)}}
71+
{{template "shared/no_results_found" (dict "results" .Emails "colspan" 6)}}
7272
</tbody>
7373
</table>
7474
</div>

templates/admin/notice.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<td class="view-detail"><a href="#">{{svg "octicon-note" 16}}</a></td>
2626
</tr>
2727
{{end}}
28-
{{template "shared/no_results_found" (dict "rst" .Notices "colspan" 6)}}
28+
{{template "shared/no_results_found" (dict "results" .Notices "colspan" 6)}}
2929
</tbody>
3030
{{if .Notices}}
3131
<tfoot>

templates/admin/org/list.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
<td><a href="{{.OrganisationLink}}/settings" data-tooltip-content="{{ctx.Locale.Tr "edit"}}">{{svg "octicon-pencil"}}</a></td>
6868
</tr>
6969
{{end}}
70-
{{template "shared/no_results_found" (dict "rst" .Users "colspan" 7)}}
70+
{{template "shared/no_results_found" (dict "results" .Users "colspan" 7)}}
7171
</tbody>
7272
</table>
7373
</div>

templates/admin/packages/list.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
<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>
7676
</tr>
7777
{{end}}
78-
{{template "shared/no_results_found" (dict "rst" .PackageDescriptors "colspan" 10)}}
78+
{{template "shared/no_results_found" (dict "results" .PackageDescriptors "colspan" 10)}}
7979
</tbody>
8080
</table>
8181
</div>

templates/admin/repo/list.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
<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>
8888
</tr>
8989
{{end}}
90-
{{template "shared/no_results_found" (dict "rst" .Repos "colspan" 12)}}
90+
{{template "shared/no_results_found" (dict "results" .Repos "colspan" 12)}}
9191
</tbody>
9292
</table>
9393
</div>

templates/admin/user/list.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
</td>
111111
</tr>
112112
{{end}}
113-
{{template "shared/no_results_found" (dict "rst" .Users "colspan" 9)}}
113+
{{template "shared/no_results_found" (dict "results" .Users "colspan" 9)}}
114114
</tbody>
115115
</table>
116116
</div>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
{{if not .rst}}
2-
<tr>
1+
{{if not .results}}
2+
<tr class="no-results-row">
33
<td class="center aligned" colspan="{{.colspan}}">{{ctx.Locale.Tr "no_results_found"}}</td>
44
</tr>
55
{{end}}

tests/integration/auth_ldap_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ func TestLDAPUserSyncWithEmptyUsernameAttribute(t *testing.T) {
279279

280280
htmlDoc := NewHTMLParser(t, resp.Body)
281281

282-
tr := htmlDoc.doc.Find("table.table tbody tr")
282+
tr := htmlDoc.doc.Find("table.table tbody tr:not(.no-results-row)")
283283
assert.Equal(t, 0, tr.Length())
284284
}
285285

0 commit comments

Comments
 (0)