This repository was archived by the owner on Feb 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ module.exports = function(crowi, app) {
59
59
var path = getPathFromRequest ( req ) ;
60
60
var limit = 50 ;
61
61
var offset = parseInt ( req . query . offset ) || 0 ;
62
+ var SEENER_THRESHOLD = 10 ;
62
63
path = path + ( path == '/' ? '' : '/' ) ;
63
64
64
65
// index page
@@ -90,6 +91,9 @@ module.exports = function(crowi, app) {
90
91
91
92
pagerOptions . length = pageList . length ;
92
93
94
+ renderVars . config = {
95
+ seener_threshold : SEENER_THRESHOLD
96
+ } ;
93
97
renderVars . pager = generatePager ( pagerOptions ) ;
94
98
renderVars . pages = pageList ;
95
99
res . render ( 'page_list' , renderVars ) ;
Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ <h3>Next Actions</h3>
127
127
128
128
{# list view #}
129
129
< div class ="active tab-pane fade page-list-container in " id ="view-list ">
130
- {% include 'widget/page_list.html' with { pages: pages, pager: pager } %}
130
+ {% include 'widget/page_list.html' with { pages: pages, pager: pager, config: config } %}
131
131
</ div >
132
132
133
133
{# timeline view #}
Original file line number Diff line number Diff line change 31
31
</ span >
32
32
{% endif %}
33
33
34
+ {% if page.seenUsers.length > = config.seener_threshold %}
35
+ < span >
36
+ < i class ="fa fa-eye "> {{ page.seenUsers.length }}</ i >
37
+ </ span >
38
+ {% endif %}
39
+
34
40
{% if !page.isPublic() %}
35
41
< span >
36
42
< i class ="fa fa-lock "> </ i >
You can’t perform that action at this time.
0 commit comments