Remove unused code

This commit is contained in:
Naoki Takezoe
2016-02-15 09:20:36 +09:00
parent 760d443f74
commit 5a90848c75

View File

@@ -70,71 +70,41 @@
</div> </div>
</div> </div>
<div class="container body"> <div class="container body">
@* @if(isRepoTop){
@if(expand){ @repository.repository.description.map { description =>
<div class="small"> <p class="description">@detectAndRenderLinks(description)</p>
<strong id="repository-url-proto">HTTP</strong> <span class="mute">clone URL</span>
</div>
@helper.html.copy("repository-url-copy", repository.httpUrl){
<input type="text" value="@repository.httpUrl" id="repository-url" class="form-control input-sm" readonly>
}
@if(repository.sshUrl.isDefined){
<div class="small">
<span class="mute">You can clone <a href="javascript:void(0);" id="repository-url-http">HTTP</a> or <a href="javascript:void(0);" id="repository-url-ssh">SSH</a>.</span>
</div>
}
@id.map { id =>
@if(context.platform != "linux" && context.platform != null){
<div style="margin-top: 10px;">
<a href="@openRepoUrl(repository.httpUrl)" id="repository-clone-url" class="btn btn-sm btn-default btn-block"><i class="octicon octicon-desktop-download"></i>&nbsp;&nbsp;Clone in Desktop</a>
</div>
}
<div style="margin-top: 10px;">
<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 style="margin-top: 10px;">
<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 style="margin-bottom: 10px; padding: 4px;" class="panel panel-default">
@* <div class="pull-left" style="width: 895px;">*@ <table class="fill-width">
@if(isRepoTop){ <tr>
@repository.repository.description.map { description => <td style="width: 33%; text-align: center;">
<p class="description">@detectAndRenderLinks(description)</p> <a href="@url(repository)/commits/@encodeRefName(id.getOrElse(""))" class="header-link">
} <i class="octicon octicon-history"></i>
<div style="margin-bottom: 10px; padding: 4px;" class="panel panel-default"> @if(repository.commitCount > 10000){
<table class="fill-width"> <strong>10000+</strong> commits
<tr> } else {
<td style="width: 33%; text-align: center;"> <strong>@repository.commitCount</strong> commits
<a href="@url(repository)/commits/@encodeRefName(id.getOrElse(""))" class="header-link"> }
<i class="octicon octicon-history"></i> </a>
@if(repository.commitCount > 10000){ </td>
<strong>10000+</strong> commits <td style="width: 33%; text-align: center;">
} else { <a href="@url(repository)/branches" class="header-link" class="header-link">
<strong>@repository.commitCount</strong> commits <i class="octicon octicon-git-branch"></i>
} <strong>@repository.branchList.length</strong> branches
</a> </a>
</td> </td>
<td style="width: 33%; text-align: center;"> <td style="width: 33%; text-align: center;">
<a href="@url(repository)/branches" class="header-link" class="header-link"> <a href="@url(repository)/tags" class="header-link" class="header-link">
<i class="octicon octicon-git-branch"></i> <i class="octicon octicon-tag"></i>
<strong>@repository.branchList.length</strong> branches <strong>@repository.tags.length</strong> releases
</a> </a>
</td> </td>
<td style="width: 33%; text-align: center;"> </tr>
<a href="@url(repository)/tags" class="header-link" class="header-link"> </table>
<i class="octicon octicon-tag"></i> </div>
<strong>@repository.tags.length</strong> releases }
</a> @body
</td> </div>
</tr>
</table>
</div>
}
@body
</div>
@*</div>*@
<script> <script>
$(function(){ $(function(){