| {#- |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| -#} |
| <tr> |
| <th>Username</th> |
| <th>Display name</th> |
| <th>Email</th> |
| <th>Registered</th> |
| <th>Status</th> |
| {% for field in additional_display_fields %} |
| <th>{{ field }}</th> |
| {% endfor %} |
| <th>Details</th> |
| </tr> |
| |
| {% for u in objects %} |
| <tr> |
| <td><a href="{{ u['url'] }}">{{ u['username'] }}</a></td> |
| <td>{{ u['display_name'] }}</td> |
| <td>{{ u['object'].get_pref('email_address') }}</td> |
| <td>{{ h.ago(provider.user_registration_date(u['object']).replace(tzinfo=None)) }}</td> |
| <td>{{ u['status'] }}</td> |
| {% for field in additional_display_fields %} |
| <td>{{ u[field] }}</td> |
| {% endfor %} |
| <td> |
| {% for url, label in provider.details_links(u['object']) %} |
| <a href="{{ url }}">{{ label }}</a><br> |
| {% endfor %} |
| </td> |
| </tr> |
| {% endfor %} |