feat: add global feed to consoles

This commit is contained in:
Jemma Poffinbarger
2025-01-20 16:16:57 -06:00
parent ceffdc36a8
commit bf84b64911
3 changed files with 25 additions and 3 deletions

View File

@@ -66,8 +66,7 @@ router.get('/all', async function (req, res) {
if (req.query.pjax) {
return res.render(req.directory + '/partials/posts_list.ejs', {
bundle,
moment,
lang: req.lang
moment
});
}

View File

@@ -7,6 +7,18 @@
<h1 id="page-title" class=""><%= title %></h1>
</header>
<div class="body-content tab2-content" id="community-post-list">
<menu class="tab-header no-margin">
<li id="tab-header-my-feed" class="tab-button <%if(tab === 0){ %>selected<%}%>" data-show-post-button="1">
<a href="/feed" data-pjax-replace="1" data-sound="SE_WAVE_SELECT_TAB">
<span class="new-post">My Feed</span>
</a>
</li>
<li id="tab-header-global-feed" class="tab-button <%if(tab === 1){ %>selected<%}%>">
<a href="/feed/all" data-pjax-cache-container="#body" data-pjax-replace="1" data-sound="SE_WAVE_SELECT_TAB">
<span>Global Feed</span>
</a>
</li>
</menu>
<div class="tab-body post-list">
<%- include('partials/' + template, { bundle }); %>
</div>

View File

@@ -11,8 +11,19 @@
<a href="#" class="button" data-offset="10" onclick="loadFeedPosts(this)"><%= lang.global.more %></a>
<div id="new-post"></div>
</div>
<div class="body-content" id="activity-feed">
<menu class="tab-header">
<li id="tab-header-my-feed" class="tab-button <%if(tab === 0){ %>selected<%}%>" data-show-post-button="1">
<a href="/feed/" data-pjax-replace="1" data-sound="SE_WAVE_SELECT_TAB">
<span class="new-post">My Feed</span>
</a>
</li>
<li id="tab-header-global-feed" class="tab-button <%if(tab === 1){ %>selected<%}%>">
<a href="/feed/all" data-pjax-cache-container="#body" data-pjax-replace="1" data-sound="SE_WAVE_SELECT_TAB">
<span>Global Feed</span>
</a>
</li>
</menu>
<div class="tab-body post-list">
<%- include('partials/' + template, { bundle }); %>
</div>