
code: Do not show selected branch for a commit
It was incorrect and is not necessary. I think in future we can show the branches and tags which contain the commit, instead of the selected branch.
@c13745dc59e23d849601cdb6f6e21fd8b30ed178
--- app/views/code/diff.scala.html
+++ app/views/code/diff.scala.html
... | ... | @@ -36,17 +36,6 @@ |
36 | 36 |
<div class="page-wrap-outer"> |
37 | 37 |
<div class="project-page-wrap"> |
38 | 38 |
<div id="code-browse-wrap" class="code-browse-wrap"> |
39 |
- <select id="branches" data-toggle="select2" data-format="branch" data-dropdown-css-class="branches" class="pull-right"> |
|
40 |
- @defining(RepositoryService.getRepository(project).getBranchNames()) { branches => |
|
41 |
- @for(branchName <- branches){ |
|
42 |
- <option value="@routes.CodeHistoryApp.history(project.owner, project.name, URLEncoder.encode(branchName, "UTF-8"), null)" |
|
43 |
- @if(selectedBranch){ @if(branchItemName(branchName) == branchItemName(selectedBranch)){ selected } }> |
|
44 |
- @branchName |
|
45 |
- </option> |
|
46 |
- } |
|
47 |
- } |
|
48 |
- </select> |
|
49 |
- |
|
50 | 39 |
<ul class="nav nav-tabs" style="margin-bottom:20px;"> |
51 | 40 |
<li> |
52 | 41 |
<a href="@routes.CodeApp.codeBrowser(project.owner, project.name)">@Messages("code.files")</a> |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?