feat: add community new and popular tabs in juxt web

This commit is contained in:
Jemma Poffinbarger
2024-07-29 14:07:37 -05:00
parent e4b102191d
commit 4f28fb9350
4 changed files with 940 additions and 902 deletions

View File

@@ -56,23 +56,13 @@
</div>
</div>
</div>
<div class="buttons tabs">
<a id="recent-tab" class="<%if(type === 0){ %>selected<%}%>" href="/titles/<%= community.olive_community_id %>/new"><%= lang.community.recent %></a>
<a id="popular-tab" class="<%if(type === 1){ %>selected<%}%>" href="/titles/<%= community.olive_community_id %>/hot"><%= lang.community.popular %></a>
<!--<a id="verified-tab" class="<%if(type === 2){ %>selected<%}%>" href="/titles/<%= community.olive_community_id %>/verified"><%= lang.community.verified %></a>-->
</div>
<%- include('partials/' + template, { bundle }); %>
</div>
<!--<table class="community-page-posts-header switcher">
<tbody>
<tr>
<td>
<h4 id="recent-tab" onclick="loadPosts(0)" class="community-page-posts-header-tab active"><%= lang.community.recent %></h4>
</td>
<td>
<h4 id="popular-tab" onclick="loadPosts(1)" class="community-page-posts-header-tab"><%= lang.community.popular %></h4>
</td>
<td>
<h4 id="verified-tab" onclick="loadPosts(2)" class="community-page-posts-header-tab"><%= lang.community.verified %></h4>
</td>
</tr>
</tbody>
</table>-->
</div>
</body>
</html>

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@@ -54,7 +54,7 @@
<div class="buttons tabs">
<a id="post-reports" href="/admin/posts">Posts</a>
<a id="account-reports" href="/admin/accounts">Accounts</a>
<a id="communities" class="selected"href="/admin/communities">Communities</a>
<a id="communities" class="selected" href="/admin/communities">Communities</a>
</div>
<form action="/admin/communities/<%= community.olive_community_id %>" method="post" enctype="multipart/form-data">
<div class="col-md-4">