mlmym/templates/community.html
2023-12-16 09:43:43 -05:00

19 lines
815 B
HTML

<div class="community">
<form method="POST" class="member {{ membership .Subscribed }}">
<input name="op" type="submit" value="{{ membership .Subscribed}}">
<input type="hidden" name="communityid" value ="{{ .Community.ID }}">
</form>
<span class="title"><a href="{{ if .Community.Local }}./c/{{.Community.Name}}{{else}}{{ localize .Community.ActorID }}{{end}}">c/{{fullcname .Community}}: {{.Community.Title}}</a></span>
<div class="details">
{{ if .Community.Description.IsValid }}
<div class="description">
{{ markdown "" .Community.Description.String }}
</div>
{{ end }}
<div class="gray">
{{ if .Counts.Subscribers }}{{ printer .Counts.Subscribers }} subscribers,{{end}}
a community founded {{ humanize .Community.Published }}
</div>
</div>
</div>