mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-14 17:35:50 +01:00
(refs #551)Adjust wiki buttons
This commit is contained in:
@@ -10,12 +10,12 @@
|
|||||||
<h1 class="wiki-title"><span class="muted">Editing</span> @if(pageName.isEmpty){New Page} else {@pageName}</h1>
|
<h1 class="wiki-title"><span class="muted">Editing</span> @if(pageName.isEmpty){New Page} else {@pageName}</h1>
|
||||||
</li>
|
</li>
|
||||||
<li class="pull-right">
|
<li class="pull-right">
|
||||||
<div class="btn-group">
|
<div>
|
||||||
@if(page.isDefined){
|
@if(page.isDefined){
|
||||||
<a class="btn btn-small" href="@url(repository)/wiki/@urlEncode(pageName)">View Page</a>
|
<a class="btn btn-small" href="@url(repository)/wiki/@urlEncode(pageName)/_delete" id="delete">Delete Page</a>
|
||||||
<a class="btn btn-small" href="@url(repository)/wiki/@urlEncode(pageName)/_delete" id="delete">Delete Page</a>
|
<a class="btn btn-small" href="@url(repository)/wiki/@urlEncode(pageName)/_history">Page History</a>
|
||||||
<a class="btn btn-small" href="@url(repository)/wiki/@urlEncode(pageName)/_history">Page History</a>
|
}
|
||||||
}
|
<a class="btn btn-small btn-success" href="@url(repository)/wiki/_new">New Page</a>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
@@ -16,21 +16,29 @@
|
|||||||
</h1>
|
</h1>
|
||||||
</li>
|
</li>
|
||||||
<li class="pull-right">
|
<li class="pull-right">
|
||||||
<div class="btn-group">
|
<div>
|
||||||
@if(pageName.isEmpty){
|
@if(pageName.isEmpty){
|
||||||
@if(loginAccount.isDefined){
|
@if(loginAccount.isDefined){
|
||||||
<a class="btn btn-small" href="@url(repository)/wiki/_new">New Page</a>
|
<a class="btn btn-small" href="@url(repository)/wiki/_new">New Page</a>
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
<a class="btn btn-small" href="@url(repository)/wiki/@urlEncode(pageName)">View Page</a>
|
|
||||||
@if(loginAccount.isDefined){
|
@if(loginAccount.isDefined){
|
||||||
<a class="btn btn-small" href="@url(repository)/wiki/@urlEncode(pageName)/_edit">Edit Page</a>
|
<a class="btn btn-small" href="@url(repository)/wiki/@urlEncode(pageName)/_edit">Edit Page</a>
|
||||||
|
<a class="btn btn-small btn-success" href="@url(repository)/wiki/_new">New Page</a>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<table class="table table-bordered fill-width pull-left">
|
<table class="table table-bordered fill-width pull-left">
|
||||||
|
<tr>
|
||||||
|
<th colspan="3">
|
||||||
|
<div class="pull-left" style="padding-top: 4px;">Revisions</div>
|
||||||
|
<div class="pull-right">
|
||||||
|
<input type="button" id="compare" value="Compare Revisions" class="btn btn-mini"/>
|
||||||
|
</div>
|
||||||
|
</th>
|
||||||
|
</tr>
|
||||||
@commits.map { commit =>
|
@commits.map { commit =>
|
||||||
<tr>
|
<tr>
|
||||||
<td width="0%"><input type="checkbox" name="commitId" value="@commit.id"></td>
|
<td width="0%"><input type="checkbox" name="commitId" value="@commit.id"></td>
|
||||||
@@ -41,8 +49,6 @@
|
|||||||
</tr>
|
</tr>
|
||||||
}
|
}
|
||||||
</table>
|
</table>
|
||||||
<input type="button" id="compare" value="Compare Revisions" class="btn"/>
|
|
||||||
<input type="button" id="top" value="Back to Top" class="btn"/>
|
|
||||||
<script>
|
<script>
|
||||||
$(function(){
|
$(function(){
|
||||||
$('input[name=commitId]').click(function(){
|
$('input[name=commitId]').click(function(){
|
||||||
|
|||||||
@@ -16,13 +16,12 @@
|
|||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<li class="pull-right">
|
<li class="pull-right">
|
||||||
<div class="btn-group">
|
@if(hasWritePermission){
|
||||||
@if(hasWritePermission){
|
<div>
|
||||||
<a class="btn btn-small" href="@url(repository)/wiki/_new">New Page</a>
|
|
||||||
<a class="btn btn-small" href="@url(repository)/wiki/@urlEncode(pageName)/_edit">Edit Page</a>
|
<a class="btn btn-small" href="@url(repository)/wiki/@urlEncode(pageName)/_edit">Edit Page</a>
|
||||||
}
|
<a class="btn btn-small btn-success" href="@url(repository)/wiki/_new">New Page</a>
|
||||||
<a class="btn btn-small" href="@url(repository)/wiki/@urlEncode(pageName)/_history">Page History</a>
|
</div>
|
||||||
</div>
|
}
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<div style="width: 200px;" class="pull-right">
|
<div style="width: 200px;" class="pull-right">
|
||||||
|
|||||||
Reference in New Issue
Block a user