Removed project submission button from project index.

This commit is contained in:
Asaf Gartner 2021-09-05 22:57:10 +03:00
parent c76ea45ca9
commit b0930dd4f2
2 changed files with 4 additions and 26 deletions

View File

@ -68,26 +68,10 @@
<div class="ml3-l mt3 mt0-l pa3 bg--dim br2"> <div class="ml3-l mt3 mt0-l pa3 bg--dim br2">
{{ if not .UserPendingProject }} {{ if not .UserPendingProject }}
<div class="content-block new-project p-spaced"> <div class="content-block new-project p-spaced">
<h2>Submit a Project</h2> <h2>Project submissions are closed</h2>
<pre>your-project-here.handmade.network</pre>
<p> <p>
Developing something cool? Building a tool, game, website, etc. We are reworking the way we approach projects on the network. In the meantime feel free to share your work on the <a href="{{ .WIPForumUrl }}">forums</a> or on our <a href="https://discord.gg/hxWxDee">Discord</a>.
that meshes with the <a href="{{ .ManifestoUrl }}">Handmade philosophy</a>?
</p> </p>
{{ if .User }}
<p class="center">
<a class="button" href="{{ .NewProjectUrl }}">Submit a Project</a>
</p>
{{ else }}
<p>
Become a member now to submit a project to the site!
</p>
<p class="center">
<a class="button" href="{{ .RegisterUrl }}">Register</a>
<span class="mh2">or</span>
<a class="button" href="{{ .LoginUrl }}">Log In</a>
</p>
{{ end }}
</div> </div>
{{ else }} {{ else }}
<div class="content-block single"> <div class="content-block single">

View File

@ -30,10 +30,7 @@ type ProjectTemplateData struct {
UserApprovedProjects []templates.Project UserApprovedProjects []templates.Project
ProjectAtomFeedUrl string ProjectAtomFeedUrl string
ManifestoUrl string WIPForumUrl string
NewProjectUrl string
RegisterUrl string
LoginUrl string
} }
func ProjectIndex(c *RequestContext) ResponseData { func ProjectIndex(c *RequestContext) ResponseData {
@ -195,10 +192,7 @@ func ProjectIndex(c *RequestContext) ResponseData {
UserApprovedProjects: userApprovedProjects, UserApprovedProjects: userApprovedProjects,
ProjectAtomFeedUrl: hmnurl.BuildAtomFeedForProjects(), ProjectAtomFeedUrl: hmnurl.BuildAtomFeedForProjects(),
ManifestoUrl: hmnurl.BuildManifesto(), WIPForumUrl: hmnurl.BuildForum(models.HMNProjectSlug, []string{"wip"}, 1),
NewProjectUrl: hmnurl.BuildProjectNew(),
RegisterUrl: hmnurl.BuildRegister(),
LoginUrl: hmnurl.BuildLoginPage(c.FullUrl()),
}, c.Perf) }, c.Perf)
return res return res
} }