Skip to content

Commit

Permalink
hiding trees when they haven not been reconciled yet. updated names i…
Browse files Browse the repository at this point in the history
…n plot
  • Loading branch information
proost committed Nov 9, 2017
1 parent bfe8e24 commit 8c35158
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions conekt/controllers/admin/views/xrefs.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from flask_admin import expose
from flask import current_app, flash

from conekt.controllers.admin.views import AdminBaseView
from conekt.forms.admin.add_xrefs import AddXRefsForm, AddXRefsFamiliesForm
Expand All @@ -13,6 +14,9 @@ def index(self):
form = AddXRefsForm()
form.populate_species()

if current_app.config['WHOOSHEE_ENABLE_INDEXING']:
flash("WHOOSHEE Indexing is enabled, this can take a long time to complete.", "warning")

return self.render('admin/add/xrefs.html', form=form)


Expand All @@ -25,4 +29,7 @@ def index(self):
form = AddXRefsFamiliesForm()
form.populate_methods()

if current_app.config['WHOOSHEE_ENABLE_INDEXING']:
flash("WHOOSHEE Indexing is enabled, this can take a long time to complete.", "warning")

return self.render('admin/add/xrefs_families.html', form=form)

0 comments on commit 8c35158

Please sign in to comment.