mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-13 17:05:50 +01:00
Rename general variable name isWritable to hasWritePermission.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
@(pageName: String,
|
||||
page: service.WikiService.WikiPageInfo,
|
||||
repository: service.RepositoryService.RepositoryInfo,
|
||||
isWritable: Boolean)(implicit context: app.Context)
|
||||
hasWritePermission: Boolean)(implicit context: app.Context)
|
||||
@import context._
|
||||
@import view.helpers._
|
||||
@html.main(pageName + " - " + repository.owner + "/" + repository.name){
|
||||
@@ -13,7 +13,7 @@
|
||||
</li>
|
||||
<li class="pull-right">
|
||||
<div class="btn-group">
|
||||
@if(isWritable){
|
||||
@if(hasWritePermission){
|
||||
<a class="btn" href="@url(repository)/wiki/_new">New Page</a>
|
||||
<a class="btn" href="@url(repository)/wiki/@pageName/_edit">Edit Page</a>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user