diff --git a/web/templates/blob_view.html b/web/templates/blob_view.html new file mode 100644 index 0000000..fd64dab --- /dev/null +++ b/web/templates/blob_view.html @@ -0,0 +1,60 @@ +{{define "file_browser"}} +
+
+
+ {{.CurrentPath}} + {{len .FileContent}} + bytes +
+
+ Edit +
+
+ +
{{.FileContent}}
+
+ + +{{end}} \ No newline at end of file diff --git a/web/templates/code_editor.html b/web/templates/code_editor.html new file mode 100644 index 0000000..42572e1 --- /dev/null +++ b/web/templates/code_editor.html @@ -0,0 +1,83 @@ +{{define "code_editor"}} +
+
Editing {{.CurrentPath}}
+
+ + + +
+ + +
+ + Cancel + +
+
+
+ + + +{{end}} diff --git a/web/templates/commit_history.html b/web/templates/commit_history.html new file mode 100644 index 0000000..281f9e3 --- /dev/null +++ b/web/templates/commit_history.html @@ -0,0 +1,19 @@ +{{define "commit_history"}} +
+
Commit History
+ {{range .Commits}} +
+
+ {{.Hash}} +
+ +
{{.Author}}
+
{{.Date}}
+
+ {{else}} +
No commits found.
+ {{end}} +
+{{end}} diff --git a/web/templates/commit_view.html b/web/templates/commit_view.html new file mode 100644 index 0000000..da28fef --- /dev/null +++ b/web/templates/commit_view.html @@ -0,0 +1,70 @@ +{{define "commit_view"}} +
+ +
+
+
Files Changed
+
+ {{range .CommitDiffs}} + + {{.Name}} + + {{end}} +
+
+
+ + +
+ {{range .CommitDiffs}} +
+
+ {{.Name}} + Toggle +
+
+
{{.Content}}
+
+ +
+
+
+ {{else}} +
No changes found in this commit.
+ {{end}} +
+
+ + +{{end}} diff --git a/web/templates/contribution_graph.html b/web/templates/contribution_graph.html new file mode 100644 index 0000000..4df17e1 --- /dev/null +++ b/web/templates/contribution_graph.html @@ -0,0 +1,262 @@ +{{define "contribution_graph_inner"}} +
+ {{range .ContributionGraph}} +
+ {{end}} +
+ + + +{{end}} + +{{define "contribution_graph"}} +
+
+ Contributions in {{.SelectedYear}} +
+ +
+
+ +
+ Loading... +
+
+ +
+ +
+
+
Contribution activity
+
+
Loading activity...
+
+
+ +
+ {{range .AvailableYears}} + {{.}} + {{end}} +
+
+
+ +
+ +{{end}}