mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-06 13:35:50 +01:00
Remove branch / tag icon if there are no branches / tags.
This commit is contained in:
@@ -17,18 +17,22 @@
|
|||||||
<pre class="commit-description">@commit.description.get</pre>
|
<pre class="commit-description">@commit.description.get</pre>
|
||||||
}
|
}
|
||||||
<div class="small" style="font-weight: normal;">
|
<div class="small" style="font-weight: normal;">
|
||||||
<span class="description">
|
@if(branches.nonEmpty){
|
||||||
<img src="@path/assets/common/images/branch.png"/>
|
<span class="description">
|
||||||
@branches.zipWithIndex.map { case (branch, i) =>
|
<img src="@path/assets/common/images/branch.png"/>
|
||||||
<a href="@path/@repository.owner/@repository.name/tree/@branch" class="branch" id="branch-@i">@branch</a>
|
@branches.zipWithIndex.map { case (branch, i) =>
|
||||||
}
|
<a href="@path/@repository.owner/@repository.name/tree/@branch" class="branch" id="branch-@i">@branch</a>
|
||||||
</span>
|
}
|
||||||
<span class="description">
|
</span>
|
||||||
<img src="@path/assets/common/images/tag.png"/>
|
}
|
||||||
@tags.zipWithIndex.map { case (tag, i) =>
|
@if(tags.nonEmpty){
|
||||||
<a href="@path/@repository.owner/@repository.name/tree/@tag" class="tag" id="tag-@i">@tag</a>
|
<span class="description">
|
||||||
}
|
<img src="@path/assets/common/images/tag.png"/>
|
||||||
</span>
|
@tags.zipWithIndex.map { case (tag, i) =>
|
||||||
|
<a href="@path/@repository.owner/@repository.name/tree/@tag" class="tag" id="tag-@i">@tag</a>
|
||||||
|
}
|
||||||
|
</span>
|
||||||
|
}
|
||||||
</div>
|
</div>
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
Reference in New Issue
Block a user