mirror of
https://github.com/PretendoNetwork/juxtaposition-ui.git
synced 2026-08-20 16:25:44 -05:00
feat: add global feed to consoles
This commit is contained in:
@@ -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
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user