request['public_key'] = user.public_key
request['private_key'] = user.private_key
request['username'] = user.login
+ request['reasons'] = user.reasons
return request
def make_request_slice(slice):
{% if my_authorities %}
{% for authority, requests in my_authorities.items %}
- {% if authority == pi_authority or 'fibre'%}
+ {% if authority == pi_authority or authority == "fibre" %}
<div class="col-md-12">
<h2>{{authority}}</h2>
<table class="table">
{% if sub_authorities %}
{% for authority, requests in sub_authorities.items %}
- {% if authority == pi_authority or 'fibre'%}
+ {% if authority == pi_authority or authority == 'fibre'%}
<div class="col-md-12">
<h3>{{authority}}</h3>
<table class="table">
{% if delegation_authorities %}
{% for authority, requests in delegation_authorities.items %}
- {% if authority == pi_authority or 'fibre'%}
+ {% if authority == pi_authority or authority == 'fibre'%}
<div class="col-md-12">
<h3>{{authority}}</h3>
<table class="table">