mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 16:01:32 +01:00 
			
		
		
		
	* fix units permission problems * fix some bugs and merge LoadUnits to repoAssignment * refactor permission struct and add some copyright heads * remove unused codes * fix routes units check * improve permission check * add unit tests for permission * fix typo * fix tests * fix some routes * fix api permission check * improve permission check * fix some permission check * fix tests * fix tests * improve some permission check * fix some permission check * refactor AccessLevel * fix bug * fix tests * fix tests * fix tests * fix AccessLevel * rename CanAccess * fix tests * fix comment * fix bug * add missing unit for test repos * fix bug * rename some functions * fix routes check
		
			
				
	
	
		
			30 lines
		
	
	
		
			852 B
		
	
	
	
		
			Cheetah
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			852 B
		
	
	
	
		
			Cheetah
		
	
	
	
	
	
| {{template "base/head" .}}
 | |
| <div class="repository wiki pages">
 | |
| 	{{template "repo/header" .}}
 | |
| 	<div class="ui container">
 | |
| 		<div class="ui header">
 | |
| 			{{.i18n.Tr "repo.wiki.pages"}}
 | |
| 			{{if and .CanWriteWiki (not .IsRepositoryMirror)}}
 | |
| 			<div class="ui right">
 | |
| 				<a class="ui green small button" href="{{.RepoLink}}/wiki/_new">{{.i18n.Tr "repo.wiki.new_page_button"}}</a>
 | |
| 			</div>
 | |
| 			{{end}}
 | |
| 		</div>
 | |
| 		<table class="ui table">
 | |
| 			<tbody>
 | |
| 				{{range .Pages}}
 | |
| 					<tr>
 | |
| 						<td>
 | |
| 							<i class="octicon octicon-file-text"></i>
 | |
| 							<a href="{{$.RepoLink}}/wiki/{{.SubURL}}">{{.Name}}</a>
 | |
| 						</td>
 | |
| 						{{$timeSince := TimeSinceUnix .UpdatedUnix $.Lang}}
 | |
| 						<td class="text right grey">{{$.i18n.Tr "repo.wiki.last_updated" $timeSince | Safe}}</td>
 | |
| 					</tr>
 | |
| 				{{end}}
 | |
| 			</tbody>
 | |
| 		</table>
 | |
| 	</div>
 | |
| </div>
 | |
| {{template "base/footer" .}}
 |