feedless/app/views/shared/_join_button.ejs

9 lines
302 B
Plaintext
Raw Normal View History

2020-04-26 18:45:45 +02:00
<% if (community.isMember) { %>
<form action="/communities/<%= community.name %>/leave" method="POST">
<input type="submit" value="Leave" />
</form>
<% } else { %>
<form action="/communities/<%= community.name %>/join" method="POST">
<input type="submit" value="Join" />
</form>
<% } %>