diff options
author | Jochen Topf <jochen@topf.org> | 2015-03-04 17:16:29 +0100 |
---|---|---|
committer | Jochen Topf <jochen@topf.org> | 2015-03-04 17:16:29 +0100 |
commit | bcc7efc99bf87d6e8164dff537d2cc4a5c358b22 (patch) | |
tree | 74b11eaedad104f2f980590ef807ed9402034d57 /web/views | |
parent | e4dacd87e3df877f908827dc09332a44f4503622 (diff) | |
download | taginfo-bcc7efc99bf87d6e8164dff537d2cc4a5c358b22.tar taginfo-bcc7efc99bf87d6e8164dff537d2cc4a5c358b22.tar.gz |
Check if db table is available for 'Similar keys' report.
Diffstat (limited to 'web/views')
-rw-r--r-- | web/views/reports/similar_keys.erb | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/web/views/reports/similar_keys.erb b/web/views/reports/similar_keys.erb index cc57929..cab3a70 100644 --- a/web/views/reports/similar_keys.erb +++ b/web/views/reports/similar_keys.erb @@ -3,14 +3,10 @@ <%= t.reports.similar_keys.intro %> </div> <div class="box resize"> +<% begin @db.count('db.similar_keys_common_rare').execute() %> <table id="grid-keys"> </table> +<% rescue %> + <p><i>Report not available due to missing database table. Please run update!</i></p> +<% end %> </div> -<% javascript do - JS.raw(<<"JAVASCRIPT") -function page_init2() { -// create_flexigrid(); -} -JAVASCRIPT -end -%> |