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.   Co-authored-by: delvh <leon@kske.dev> Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
		
							parent
							
								
									a354636966
								
							
						
					
					
						commit
						c8093a13ff
					
				| 
						 | 
				
			
			@ -3,7 +3,7 @@
 | 
			
		|||
	<div class="ui container">
 | 
			
		||||
		<div class="repo-header">
 | 
			
		||||
			<div class="repo-title-wrap df fc">
 | 
			
		||||
				<div class="repo-title">
 | 
			
		||||
				<div class="repo-title" role="heading" aria-level="1">
 | 
			
		||||
					{{$avatar := (repoAvatar . 32 "mr-3")}}
 | 
			
		||||
					{{if $avatar}}
 | 
			
		||||
						{{$avatar}}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,4 +1,4 @@
 | 
			
		|||
<div class="ui compact left small menu">
 | 
			
		||||
<h2 class="ui compact small menu header">
 | 
			
		||||
	<a class="{{if .PageIsLabels}}active {{end}}item" href="{{.RepoLink}}/labels">{{.locale.Tr "repo.labels"}}</a>
 | 
			
		||||
	<a class="{{if .PageIsMilestones}}active {{end}}item" href="{{.RepoLink}}/milestones">{{.locale.Tr "repo.milestones"}}</a>
 | 
			
		||||
</div>
 | 
			
		||||
</h2>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue