mlmym/templates/community.html

19 lines
820 B
HTML
Raw Normal View History

2023-06-30 19:41:35 +00:00
<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 }}">
2023-06-30 19:41:35 +00:00
</form>
<span class="title"><a href="{{ if .Community.Local }}./c/{{.Community.Name}}{{else}}{{ localize .Community.ActorID }}{{end}}">c/{{fullcname .Community}}: {{.Community.Title}}</a></span>
2023-06-30 19:41:35 +00:00
<div class="details">
{{ if .Community.Description.IsValid }}
<div class="description">
{{ markdown "" .Community.Description.String }}
2023-06-30 19:41:35 +00:00
</div>
{{ end }}
<div class="gray">
{{ if .Counts.Subscribers }}{{ printer .Counts.Subscribers }} subscribers,{{end}}
2023-06-30 19:41:35 +00:00
a community founded {{ humanize .Community.Published.Time }}
</div>
</div>
</div>