|
|
@ -90,11 +90,11 @@ else |
|
|
|
</div> |
|
|
|
<div class="clearfix"> |
|
|
|
<div class="pull-left">@Model.Commit.Author.Name</div> |
|
|
|
<div class="pull-left keep-space">@SR.Repository_AuthoredAt @Model.Commit.Author.When.LocalDateTime</div> |
|
|
|
<div class="pull-left keep-space">@SR.Repository_AuthoredAt <span title="@Model.Commit.Author.When">@Model.Commit.Author.When.LocalDateTime</span></div> |
|
|
|
@if (Model.Commit.Author != Model.Commit.Committer) |
|
|
|
{ |
|
|
|
<div class="pull-left keep-space">@Model.Commit.Committer.Name</div> |
|
|
|
<div class="pull-left keep-space">@SR.Repository_CommittedAt @Model.Commit.Committer.When.LocalDateTime</div> |
|
|
|
<div class="pull-left keep-space">@SR.Repository_CommittedAt <span title="@Model.Commit.Committer.When">@Model.Commit.Committer.When.LocalDateTime</span></div> |
|
|
|
} |
|
|
|
<div class="pull-right">@Model.Commit.Sha.ToShortSha()</div> |
|
|
|
</div> |
|
|
@ -104,22 +104,24 @@ else |
|
|
|
{ |
|
|
|
<tr> |
|
|
|
<td> |
|
|
|
@if (entry.EntryType == LibGit2Sharp.TreeEntryTargetType.Tree) |
|
|
|
{ <i class="icon-folder-close"></i> } |
|
|
|
else if (entry.EntryType == LibGit2Sharp.TreeEntryTargetType.Blob) |
|
|
|
{ <i class="icon-file"></i> } |
|
|
|
else if (entry.EntryType == LibGit2Sharp.TreeEntryTargetType.GitLink) |
|
|
|
{ <i class="icon-bookmark"></i> } |
|
|
|
else |
|
|
|
{ <i class="icon-leaf"></i> } |
|
|
|
@if (entry.EntryType == LibGit2Sharp.TreeEntryTargetType.GitLink) |
|
|
|
{ @entry.Name } |
|
|
|
else |
|
|
|
{ @Html.ActionLink(entry.Name, entry.EntryType.ToString(), Html.OverRoute(new { path = (Model.ReferenceName ?? Model.Commit.Sha) + "/" + entry.Path })) } |
|
|
|
<span title="@entry.Name"> |
|
|
|
@if (entry.EntryType == LibGit2Sharp.TreeEntryTargetType.Tree) |
|
|
|
{ <i class="icon-folder-close"></i> } |
|
|
|
else if (entry.EntryType == LibGit2Sharp.TreeEntryTargetType.Blob) |
|
|
|
{ <i class="icon-file"></i> } |
|
|
|
else if (entry.EntryType == LibGit2Sharp.TreeEntryTargetType.GitLink) |
|
|
|
{ <i class="icon-bookmark"></i> } |
|
|
|
else |
|
|
|
{ <i class="icon-leaf"></i> } |
|
|
|
@if (entry.EntryType == LibGit2Sharp.TreeEntryTargetType.GitLink) |
|
|
|
{ @entry.Name.ShortString(25) } |
|
|
|
else |
|
|
|
{ @Html.ActionLink(entry.Name.ShortString(25), entry.EntryType.ToString(), Html.OverRoute(new { path = (Model.ReferenceName ?? Model.Commit.Sha) + "/" + entry.Path })) } |
|
|
|
</span> |
|
|
|
</td> |
|
|
|
<td title="@entry.Commit.CommitMessageShort">@Html.ActionLink(entry.Commit.CommitMessageShort.ShortString(70), "Commit", Html.OverRoute(new { path = entry.Commit.Sha }))</td> |
|
|
|
<td title="@entry.Commit.Author">@entry.Commit.Author.Name</td> |
|
|
|
<td title="@entry.Commit.Author.When.LocalDateTime">@entry.Commit.Author.When.LocalDateTime.ToShortDateString()</td> |
|
|
|
<td><span title="@entry.Commit.CommitMessageShort">@Html.ActionLink(entry.Commit.CommitMessageShort.ShortString(70), "Commit", Html.OverRoute(new { path = entry.Commit.Sha }))</span></td> |
|
|
|
<td title="@entry.Commit.Author">@entry.Commit.Author.Name.ShortString(20)</td> |
|
|
|
<td title="@entry.Commit.Author.When">@entry.Commit.Author.When.LocalDateTime.ToShortDateString()</td> |
|
|
|
</tr> |
|
|
|
} |
|
|
|
</tbody> |
|
|
|