diff --git a/templates/repo/courseHome.tmpl b/templates/repo/courseHome.tmpl new file mode 100644 index 000000000..3f2cbe01a --- /dev/null +++ b/templates/repo/courseHome.tmpl @@ -0,0 +1,301 @@ +{{template "base/head" .}} + +
+ {{if .LatestCommitUser}}
+ |
+
+ ||
---|---|---|
{{svg "octicon-mail-reply" 16}}.. | +||
+ + {{svg "octicon-inbox" 16}} + {{$refURL := $commit.RefURL AppUrl $.Repository.FullName}} + {{if $refURL}} + {{$entry.Name}} @ {{ShortSha $commit.RefID}} + {{else}} + {{$entry.Name}} @ {{ShortSha $commit.RefID}} + {{end}} + + | + {{else}} ++ + {{if $entry.IsDir}} + {{$subJumpablePathName := $entry.GetSubJumpablePathName}} + {{$subJumpablePath := SubJumpablePath $subJumpablePathName}} + {{svg "octicon-file-directory" 16}} + + {{if eq (len $subJumpablePath) 2}} + {{index $subJumpablePath 0}}{{index $subJumpablePath 1}} + {{else}} + {{index $subJumpablePath 0}} + {{end}} + + {{else}} + + + {{$entry.Name}} + {{end}} + + | + {{end}} + + +{{TimeSince $commit.Committer.When $.Lang}} | +