MyAcc: interface visibility depends on user_status
[myslice.git] / portal / templates / account-view.html
index 3c3d543..74a2a0f 100644 (file)
                        <th>Account Type</th>
                                <th>Account Delegation</th>
                        <th>User hrn</th>
+                               <th>User Status</th>
                        <!--<th>Pub Key</th> -->
                </tr>   
                        {% for row in principal_acc %}         
                        <td class="odd"> {{ row.account_type }} </td>
                                <td class="odd"> {{ row.delegation_type }} </td>
                                <td class="odd"> {{ row.usr_hrn }}  </td>
+                               <td class="odd"> {{ row.user_status }}  </td>
                <!--    <td class="even"> {{ row.usr_pubkey }} </td> -->
                </tr> 
                        {%endfor%}               
 
 
 
-
+{%if 'Enabled'  in user_status %}
 <h3 id="show-pending" class="plugin-show" style="display: block;">
 <span class="glyphicon glyphicon-chevron-right"></span>
 <a href="#" class="plugin-tooltip" data-toggle="tooltip" data-original-title="Show plugin &quot;Pending operations&quot; (QueryUpdater)"></a>Credentials</h3>
     </div>
 </div>
 </div>
+{%endif%} 
 
 </form>