ode['pids'] -%}
                {% if pid in pdict %}
                  {% set pdoc=pdict[pid] %}
                  {% set psdoc=psdict[pid] %}
                  {% set self_psdoc=selfPsdict[pid] %}
                  <tr data-pid="{{ pid }}">
                    {% if handler.user.hasPriv(PRIV.PRIV_USER_PROFILE) %}
                      {% if psdoc['rid'] %}
                        {{ record.render_status_td(psdoc, rid_key='rid', short=should_compare) }}
                      {% else %}
                    