Skip to content

Commit

Permalink
feat: add community new and popular tabs in juxt web
Browse files Browse the repository at this point in the history
  • Loading branch information
CaramelKat committed Jul 29, 2024
1 parent e4b1021 commit 4f28fb9
Show file tree
Hide file tree
Showing 4 changed files with 968 additions and 930 deletions.
20 changes: 5 additions & 15 deletions src/webfiles/web/community.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Loading

0 comments on commit 4f28fb9

Please sign in to comment.