- {{ range $i, $tag := . }}
-
- {{ $tag.Text }}
-
+ {{ with .Projects }}
+
{{ end }}
diff --git a/src/templates/src/project_homepage.html b/src/templates/src/project_homepage.html
index 54a9d860..bca81d95 100644
--- a/src/templates/src/project_homepage.html
+++ b/src/templates/src/project_homepage.html
@@ -4,6 +4,7 @@
{{ range .Screenshots }}
{{ end }}
+
{{ end }}
{{ define "content" }}
@@ -74,11 +75,17 @@
{{ .Project.Blurb }}
{{ end }}
- {{ with .RecentActivity }}
+ {{ if or .Header.Project.CanEdit (gt (len .RecentActivity) 0) }}
-
Recent Activity
+
+
Recent Activity
+
+ {{ if .Header.Project.CanEdit }}
+
Add Snippet
+ {{ end }}
+
- {{ range . }}
+ {{ range .RecentActivity }}
{{ template "timeline_item.html" . }}
{{ end }}
@@ -86,6 +93,35 @@
{{ end }}