Skip to content

Instantly share code, notes, and snippets.

@StephenFordham
Created November 6, 2021 20:26
Show Gist options
  • Save StephenFordham/0589da414a1cc19a7911089a4bb06221 to your computer and use it in GitHub Desktop.
Save StephenFordham/0589da414a1cc19a7911089a4bb06221 to your computer and use it in GitHub Desktop.
jinja_templating_logic
<div class="container">
<div class="carousel-caption text-start">
{% if active_user %}
<h1>Welcome {{ active_user }}</h1>
<h1>Explore BacGenomePipeline</h1>
<p>Raw reads to annotated bacterial Genome</p>
{% else %}
<h1>Explore BacGenomePipeline</h1>
{% with messages = get_flashed_messages(category_filter=['success']) %}
{% if messages %}
{% for message in messages %}
<h5 class="col-lg-4 col-sm-12 alert alert-success" role="alert" >{{message}}</h5>
{% endfor %}
{% endif %}
{% endwith %}
<p>Raw reads to annotated bacterial Genome</p>
{% endif %}
<p><a class="btn btn-lg btn-light" href="{{url_for('bacgenomepipeline')}}">Explore the pipeline</a></p>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment