fixed concurrency in users & communities, implemented Communities sidebox
This commit is contained in:
+13
-9
@@ -6,20 +6,24 @@
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||||
*}
|
||||
<!-- Featured Communities -->
|
||||
<!-- Communities sidebox -->
|
||||
{{ sb := .GetScratch("__sidebox") }}
|
||||
<div class="mb-4">
|
||||
<div class="bg-blue-600 px-2 py-1 rounded-t">
|
||||
{{ if .CurrentUser().IsAnon }}
|
||||
<h3 class="text-white font-bold text-base">Featured Communities:</h3>
|
||||
{{ else }}
|
||||
<h3 class="text-white font-bold text-base">Your Communities:</h3>
|
||||
{{ end }}
|
||||
<h3 class="text-white font-bold text-base">{{ sb.Title }}</h3>
|
||||
</div>
|
||||
<div class="bg-blue-400 px-2 py-2 rounded-b">
|
||||
<div class="flex items-center">
|
||||
<span class="mr-2">🟣</span>
|
||||
<a href="http://necrovenice:8080/venice/community/Piazza"
|
||||
class="text-blue-700 hover:text-blue-900 font-bold text-sm">La Piazza</a>
|
||||
{{ if len(sb.Items) > 0 }}
|
||||
{{ range sb.Items }}
|
||||
<div class="text-small">
|
||||
<span class="mr-2">🟣</span>
|
||||
<a href="{{ .Link }}" class="text-blue-700 hover:text-blue-900 font-bold text-sm">{{ .Text }}</a>
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
<div class="text-small">You are not a member of any communities.</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user