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">
{{ if not .UserPendingProject }}
<div class="content-block new-project p-spaced">
<h2>Submit a Project</h2>
<pre>your-project-here.handmade.network</pre>
<h2>Project submissions are closed</h2>
<p>
Developing something cool? Building a tool, game, website, etc.
that meshes with the <a href="{{ .ManifestoUrl }}">Handmade philosophy</a>?
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>.
</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>
{{ else }}
<div class="content-block single">

View File

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