Skip to content

Commit

Permalink
🏷 Fixes html tag mistmatch in dashboard template (#111)
Browse files Browse the repository at this point in the history
* Fixes html tag mistmatch in dashbaord template

For some reason there seemed to be an errant closing </div> tag. It was not having an effect on display.

Also removed DataTables from #sync_history, as there was no element with id="sync_history", and when
i tried adding it, it errored with "DataTables is not defined" anyway.

The table of sync history looks fine right now, so scrapping it.

* Uses new user.is_admin property in dashboard

---------

Co-authored-by: Harpo <ryan_harbert@wgbh.org>
  • Loading branch information
afred and mrharpo authored Aug 11, 2023
1 parent 8d6b2af commit ca875d7
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions templates/dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,28 +60,26 @@ <h4>No sync history was found</h4>
{% endif %}
</div>
</div>
{% if user.is_admin %}
<div class="card-footer text-black">
<div class="btn-list ms-auto justify-content-end">
<button type="submit" name="_add_another" class="btn" {{ 'disabled' if sync_disabled }}>
<i class="fa-solid fa-rotate me-2">
</i>
{{ _("Sync Now")}}
</button>
</div>
</div>
{% endif %}
</form>
</div>
{% if 'admin' in user.roles %}
<div class="card-footer text-black">
<div class="btn-list ms-auto justify-content-end">
<button type="submit" name="_add_another" class="btn" {{ 'disabled' if sync_disabled }}>
<i class="fa-solid fa-rotate me-2">
</i>
{{ _("Sync Now")}}
</button>
</div>
</div>
{% endif %}
</form>
</div>
</div>
</div>
</div>
{% endblock %}
{% block head_css %}
{{ super() }}
{% endblock %}
{% block script %}
new DataTable('#sync_history');
{{ super() }}
{% endblock %}

0 comments on commit ca875d7

Please sign in to comment.