mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-07 14:05:52 +01:00
Fix ZeroClipboard button
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
@(id: String, value: String, prepend: Boolean = false)(html: Html)
|
@(id: String, value: String, prepend: Boolean = false)(html: Html)
|
||||||
<div class="input-append @if(prepend){input-prepend}" style="margin-bottom: 0px;">
|
<div class="input-group @if(prepend){input-prepend}" style="margin-bottom: 0px;">
|
||||||
@html
|
@html
|
||||||
<span id="@id" class="add-on btn" data-clipboard-text="@value" data-placement="bottom" title="copy to clipboard"><i class="octicon octicon-clippy"></i></span>
|
<span class="input-group-btn"><span id="@id" class="btn btn-sm btn-default" data-clipboard-text="@value" data-placement="bottom" title="copy to clipboard"><i class="octicon octicon-clippy"></i></span></span>
|
||||||
</div>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
// copy to clipboard
|
// copy to clipboard
|
||||||
|
|||||||
@@ -81,7 +81,7 @@
|
|||||||
<strong id="repository-url-proto">HTTP</strong> <span class="mute">clone URL</span>
|
<strong id="repository-url-proto">HTTP</strong> <span class="mute">clone URL</span>
|
||||||
</div>
|
</div>
|
||||||
@helper.html.copy("repository-url-copy", repository.httpUrl){
|
@helper.html.copy("repository-url-copy", repository.httpUrl){
|
||||||
<input type="text" value="@repository.httpUrl" id="repository-url" readonly>
|
<input type="text" value="@repository.httpUrl" id="repository-url" class="form-control input-sm" readonly>
|
||||||
}
|
}
|
||||||
@if(settings.ssh && loginAccount.isDefined){
|
@if(settings.ssh && loginAccount.isDefined){
|
||||||
<div class="small">
|
<div class="small">
|
||||||
@@ -91,15 +91,15 @@
|
|||||||
@id.map { id =>
|
@id.map { id =>
|
||||||
@if(context.platform != "linux" && context.platform != null){
|
@if(context.platform != "linux" && context.platform != null){
|
||||||
<div style="margin-top: 10px;">
|
<div style="margin-top: 10px;">
|
||||||
<a href="@repository.httpOpenRepoUrl(context.platform)" id="repository-clone-url" class="btn btn-sm btn-default" style="width: 147px;font-weight: bold;"><i class="octicon octicon-desktop-download"></i> Clone in Desktop</a>
|
<a href="@repository.httpOpenRepoUrl(context.platform)" id="repository-clone-url" class="btn btn-sm btn-default btn-block"><i class="octicon octicon-desktop-download"></i> Clone in Desktop</a>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
<div style="margin-top: 10px;">
|
<div style="margin-top: 10px;">
|
||||||
<a href="@{url(repository)}/archive/@{encodeRefName(id)}.zip" class="btn btn-sm btn-default" style="width: 147px;font-weight: bold;"><i class="octicon octicon-cloud-download"></i>Download ZIP</a>
|
<a href="@{url(repository)}/archive/@{encodeRefName(id)}.zip" class="btn btn-sm btn-default btn-block"><i class="octicon octicon-cloud-download"></i>Download ZIP</a>
|
||||||
</div>
|
</div>
|
||||||
@*
|
@*
|
||||||
<div style="margin-top: 10px;">
|
<div style="margin-top: 10px;">
|
||||||
<a href="@{url(repository)}/archive/@{encodeRefName(id)}.tar.gz" class="btn btn-small" style="width: 147px;font-weight: bold;"><i class="octicon octicon-cloud-download"></i>Download TAR.GZ</a>
|
<a href="@{url(repository)}/archive/@{encodeRefName(id)}.tar.gz" class="btn btn-sm btn-default btn-block "><i class="octicon octicon-cloud-download"></i>Download TAR.GZ</a>
|
||||||
</div>
|
</div>
|
||||||
*@
|
*@
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -46,7 +46,7 @@
|
|||||||
<strong>Clone this wiki locally</strong>
|
<strong>Clone this wiki locally</strong>
|
||||||
</div>
|
</div>
|
||||||
@helper.html.copy("repository-url-copy", httpUrl(repository)){
|
@helper.html.copy("repository-url-copy", httpUrl(repository)){
|
||||||
<input type="text" value="@httpUrl(repository)" id="repository-url" style="width: 160px;" readonly>
|
<input type="text" value="@httpUrl(repository)" id="repository-url" class="form-control input-sm" readonly>
|
||||||
}
|
}
|
||||||
@if(settings.ssh && loginAccount.isDefined){
|
@if(settings.ssh && loginAccount.isDefined){
|
||||||
<div class="small">
|
<div class="small">
|
||||||
|
|||||||
@@ -798,18 +798,22 @@ pre.commit-description {
|
|||||||
#repository-url {
|
#repository-url {
|
||||||
background-color: white;
|
background-color: white;
|
||||||
cursor: default;
|
cursor: default;
|
||||||
height: 16px;
|
|
||||||
width: 129px;
|
|
||||||
color: silver;
|
color: silver;
|
||||||
font-size: 9pt;
|
font-size: 8pt;
|
||||||
font-family: monospace;
|
font-family: monospace;
|
||||||
}
|
}
|
||||||
|
|
||||||
#repository-url-copy {
|
#repository-url-copy {
|
||||||
height: 18px;
|
/*height: 18px;*/
|
||||||
padding-top: 2px;
|
padding-top: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#repository-url-copy > i {
|
||||||
|
margin-left: -4px;
|
||||||
|
margin-right: -4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
ul#commit-file-list {
|
ul#commit-file-list {
|
||||||
list-style-type: none;
|
list-style-type: none;
|
||||||
padding-left: 0px;
|
padding-left: 0px;
|
||||||
|
|||||||
Reference in New Issue
Block a user