Skip to content

Commit 6f1d3eb

Browse files
committed
OPSK-860 - hide monthly stats option (and wf stats)
was biovel specific, and doesn't appear to currently work. Hidden, but keep page should biovel still need it in the future. Also only show workflow stats if workflows_enabled
1 parent d770c89 commit 6f1d3eb

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

app/views/admins/_stats.html.erb

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
<div class="form-group form-inline">
2+
<%
3+
options = [["Select query ...","none"],
4+
["Content Statistics","contents"],
5+
["Activity Statistics","activity"],
6+
["Search Statistics","search"],
7+
["Job queue","job_queue"],
8+
["Auth table consistency","auth_consistency"]
9+
]
10+
options = options | [["Workflow Statistics", "workflow_stats"]] if Seek::Config.workflows_enabled
11+
%>
12+
213
<%= select_tag :stats_query,
3-
options_for_select([["Select query ...","none"],
4-
["Content Statistics","contents"],
5-
["Activity Statistics","activity"],
6-
["Search Statistics","search"],
7-
["Job queue","job_queue"],
8-
["Auth table consistency","auth_consistency"],
9-
["Monthly User Statistics", "monthly_stats"],
10-
["Workflow Statistics", "workflow_stats"]
11-
],:length=>10),
14+
options_for_select(options,:length=>10),
1215
{:class => 'form-control',
1316
:onchange=>remote_function(:url=>get_stats_admin_path(:element=>"stats_list"),
1417
:with=>"'id='+this.value",

0 commit comments

Comments
 (0)