layout.html (649B)
1 {% extends 'base.html' %} 2 3 {% block title %}Dashboard{% endblock %} 4 5 {% block content %} 6 7 {% with messages = get_flashed_messages() %} 8 {% if messages %} 9 {% for message in messages %} 10 <div id="messagebanner"><p>{{ message }}</p></div> 11 {% endfor %} 12 {% endif %} 13 {% endwith %} 14 15 <section class="base-grid"> 16 <!-- for loop takes current user's dashboard permissions and iterates through to include Accessable widgets, else reports lack of permissions --> 17 {%- for x in permissions %} 18 {% include '/dashboard/'~x~'/widget.html' %} 19 {%- else %} 20 {{ 'You do not have permission to access this page' }} 21 {%- endfor %} 22 23 </section> 24 {% endblock %}