Skip to content

Commit c8093a1

Browse files
fsologurengdelvhzeripathlunny
authored
Add some headings to repo views (#22869)
* Add role heading level 1 to username/repo title. * Copy behaviour of Releases to some other views. Contributed by @forgejo. ![Screenshot with h2](https://user-images.githubusercontent.com/5055343/218287363-dfae9ab2-7297-4367-ab64-ab141506e131.png) ![Screenshot with former div](https://user-images.githubusercontent.com/5055343/218287419-77d0ed56-935d-492f-b3ed-71051d169ba8.png) Co-authored-by: delvh <[email protected]> Co-authored-by: zeripath <[email protected]> Co-authored-by: Lunny Xiao <[email protected]>
1 parent a354636 commit c8093a1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

templates/repo/header.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<div class="ui container">
44
<div class="repo-header">
55
<div class="repo-title-wrap df fc">
6-
<div class="repo-title">
6+
<div class="repo-title" role="heading" aria-level="1">
77
{{$avatar := (repoAvatar . 32 "mr-3")}}
88
{{if $avatar}}
99
{{$avatar}}

templates/repo/issue/navbar.tmpl

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="ui compact left small menu">
1+
<h2 class="ui compact small menu header">
22
<a class="{{if .PageIsLabels}}active {{end}}item" href="{{.RepoLink}}/labels">{{.locale.Tr "repo.labels"}}</a>
33
<a class="{{if .PageIsMilestones}}active {{end}}item" href="{{.RepoLink}}/milestones">{{.locale.Tr "repo.milestones"}}</a>
4-
</div>
4+
</h2>

0 commit comments

Comments
 (0)