Skip to content

Commit

Permalink
feat: add global feed to consoles
Browse files Browse the repository at this point in the history
  • Loading branch information
CaramelKat committed Jan 20, 2025
1 parent ceffdc3 commit bf84b64
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/services/juxt-web/routes/console/feed.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
});
}

Expand Down
12 changes: 12 additions & 0 deletions src/webfiles/ctr/feed.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
13 changes: 12 additions & 1 deletion src/webfiles/portal/feed.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit bf84b64

Please sign in to comment.