From a646dddec0d04c664ca3effb7dcdc876a8f030ee Mon Sep 17 00:00:00 2001 From: Ben Visness Date: Tue, 2 Jul 2024 22:22:38 -0500 Subject: [PATCH] Put the follow link in a gooder spot --- src/templates/img/add.svg | 2 +- src/templates/img/remove.svg | 5 ++ src/templates/src/project_homepage.html | 70 +++++++++++++++---------- 3 files changed, 47 insertions(+), 30 deletions(-) create mode 100644 src/templates/img/remove.svg diff --git a/src/templates/img/add.svg b/src/templates/img/add.svg index be77364a..3f63cfba 100644 --- a/src/templates/img/add.svg +++ b/src/templates/img/add.svg @@ -1,3 +1,3 @@ - + diff --git a/src/templates/img/remove.svg b/src/templates/img/remove.svg new file mode 100644 index 00000000..c43854b5 --- /dev/null +++ b/src/templates/img/remove.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/src/templates/src/project_homepage.html b/src/templates/src/project_homepage.html index 6927297a..65c0550d 100644 --- a/src/templates/src/project_homepage.html +++ b/src/templates/src/project_homepage.html @@ -44,7 +44,47 @@ {{ end }}
-

{{ .Project.Name }}

+
+

{{ .Project.Name }}

+ {{ if .FollowUrl }} + + + + + + {{ end }} +
{{ .Project.Blurb }}
{{ with .Owners }}
@@ -77,34 +117,6 @@ {{/* TODO(redesign): Add a fade at the bottom of this. */}}
{{ end }} - {{ if .FollowUrl }} - {{ if .Following }}Unfollow{{ else }}Follow{{ end }} - - {{ end }} {{ if or .Header.Project.CanEdit (gt (len .RecentActivity) 0) }}