Add branch and tag list to the commit detail page.

This commit is contained in:
takezoe
2013-06-20 22:17:36 +09:00
parent 8ce22a8846
commit 73d5e09a63
4 changed files with 14 additions and 5 deletions

View File

@@ -16,16 +16,16 @@
@if(commit.description.isDefined){ @if(commit.description.isDefined){
<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"> <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>&nbsp; }
</span> </span>
<span class="description"> <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>&nbsp; }
</span> </span>
</div> </div>
*@
</th> </th>
</tr> </tr>
<tr> <tr>
@@ -97,5 +97,14 @@ $(function(){
$(this).val('Show file list'); $(this).val('Show file list');
} }
}); });
$('a.branch:first, a.tag:first').css({
'font-weight': 'bold',
'color': '#555555'
});
}); });
</script> </script>
<style type="text/css">
a.branch, a.tag {
color: #888888;
}
</style>

View File

@@ -47,7 +47,7 @@ span.error {
} }
.small { .small {
font-size: small; font-size: 85%;
} }
a.commit-message, a.commit-id, a.committer { a.commit-message, a.commit-id, a.committer {

Binary file not shown.

After

Width:  |  Height:  |  Size: 137 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 144 B