Skip to content

Commit 48455d2

Browse files
committed
Add some headings to repo views.
* Add role heading level 1 to username/repo title. * Copy behaviour of Releases to some other views.
1 parent 1e0e79d commit 48455d2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

templates/repo/header.tmpl

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 2 deletions
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)