{% extends "base.html" %}
{% set active_page = "sessions" %}

{% block body_content %}
{{ super() }}

<style>
button
{
float:right;
}
</style>

<div class="container">
    <h1>Displaying a session list for {{ current_user.full_name }} !</h1>

    {% for (collection, sessions) in all_sessions %}
    <h2> {{ collection.label }}</h2>
    <table class="table table-bordered table-hover" >
        {% for session, can_admin in sessions %}
        <tr>
            <td>
                {% if session.type == 'stack' %}
                <a href="/webgl-viewer/stack?db={{ session.image_store.id|string }}&sess={{ session.id|string }}" class="lead">{{ session.label }}</a>
                {% else %}
                <a href="{{ url_for('.view_a_session', session_obj=session) }}" class="lead">{{ session.label }}</a>
                {% endif %}
            </td>
            {% if can_admin %}
            <td>
                <a href="{{ url_for('.sessionedit', session_obj=session) }}" class="lead">
                    <button type="button" class="btn btn-danger">Edit</button>
                </a>
            </td>
            {% endif %}
        </tr>
        {% endfor %}
    </table>
    <br>
    {% endfor %}
</div>
{% endblock %}

{% extends "base.html" %}
{% set active_page = "sessions" %}

{% block body_content %}
{{ super() }}

<style>
button
{
float:right;
}
</style>

<div class="container">
    {% for (collection, sessions) in all_sessions %}
    <h2> {{ collection.label }}</h2>
    <table class="table table-bordered table-hover" >
        {% for session, can_admin in sessions %}
        <tr>
            <td>
                {% if session.type == 'stack' %}
                <a href="/webgl-viewer/stack?db={{ session.image_store.id|string }}&sess={{ session.id|string }}" class="lead">{{ session.label }}</a>
                {% else %}
                <a href="{{ url_for('.view_a_session', session_obj=session) }}" class="lead">{{ session.label }}</a>
                {% endif %}
            </td>
            {% if can_admin %}
            <td>
                <a href="{{ url_for('.sessionedit', session_obj=session) }}" class="lead">
                    <button type="button" class="btn btn-danger">Edit</button>
                </a>
            </td>
            {% endif %}
        </tr>
        {% endfor %}
    </table>
    <br>
    {% endfor %}
</div>
{% endblock %}

Remove superfluous text from the session view
Remove superfluous text from the session view
