Skip to content
This repository was archived by the owner on Feb 5, 2024. It is now read-only.

Commit 35888b1

Browse files
committed
Fix: Incorrect variable assignee on page_list view
1 parent 6d6b5a4 commit 35888b1

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/routes/page.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ module.exports = function(crowi, app) {
101101

102102
pagerOptions.length = pageList.length;
103103

104-
renderVars.config = {
105-
seener_threshold: SEENER_THRESHOLD
104+
renderVars.viewConfig = {
105+
seener_threshold: SEENER_THRESHOLD,
106106
};
107107
renderVars.pager = generatePager(pagerOptions);
108108
renderVars.pages = pageList;

lib/views/page_list.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ <h3>Next Actions</h3>
174174

175175
{# list view #}
176176
<div class="active tab-pane fade page-list-container in" id="view-list">
177-
{% include 'widget/page_list.html' with { pages: pages, pager: pager, config: config } %}
177+
{% include 'widget/page_list.html' with { pages: pages, pager: pager, viewConfig: viewConfig } %}
178178
</div>
179179

180180
{# timeline view #}

lib/views/widget/page_list.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
</span>
3232
{% endif %}
3333

34-
{% if page.seenUsers.length >= config.seener_threshold %}
34+
{% if viewConfig.seener_threshold and page.seenUsers.length >= viewConfig.seener_threshold %}
3535
<span>
3636
<i class="fa fa-eye">{{ page.seenUsers.length }}</i>
3737
</span>

0 commit comments

Comments
 (0)