mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-04 20:45:58 +01:00
Add branch and tag list to the commit detail page.
This commit is contained in:
@@ -16,16 +16,16 @@
|
||||
@if(commit.description.isDefined){
|
||||
<pre class="commit-description">@commit.description.get</pre>
|
||||
}
|
||||
@*
|
||||
<div class="small" style="font-weight: normal;">
|
||||
<span class="description">
|
||||
@branchs.map { branch => <a href="@path/@repository.owner/@repository.name/tree/@branch">@branch</a> }.mkHtml(", ")
|
||||
<img src="@path/assets/common/images/branch.png"/>
|
||||
@branchs.map { branch => <a href="@path/@repository.owner/@repository.name/tree/@branch" class="branch">@branch</a> }
|
||||
</span>
|
||||
<span class="description">
|
||||
@tags.map { tag => <a href="@path/@repository.owner/@repository.name/tree/@tag">@tag</a> }.mkHtml(", ")
|
||||
<img src="@path/assets/common/images/tag.png"/>
|
||||
@tags.map { tag => <a href="@path/@repository.owner/@repository.name/tree/@tag" class="tag">@tag</a> }
|
||||
</span>
|
||||
</div>
|
||||
*@
|
||||
</th>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -97,5 +97,14 @@ $(function(){
|
||||
$(this).val('Show file list');
|
||||
}
|
||||
});
|
||||
$('a.branch:first, a.tag:first').css({
|
||||
'font-weight': 'bold',
|
||||
'color': '#555555'
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<style type="text/css">
|
||||
a.branch, a.tag {
|
||||
color: #888888;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -47,7 +47,7 @@ span.error {
|
||||
}
|
||||
|
||||
.small {
|
||||
font-size: small;
|
||||
font-size: 85%;
|
||||
}
|
||||
|
||||
a.commit-message, a.commit-id, a.committer {
|
||||
|
||||
BIN
src/main/webapp/assets/common/images/branch.png
Normal file
BIN
src/main/webapp/assets/common/images/branch.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 137 B |
BIN
src/main/webapp/assets/common/images/tag.png
Normal file
BIN
src/main/webapp/assets/common/images/tag.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 144 B |
Reference in New Issue
Block a user