Organization settings: "Bots" tab view-only support.

This changes the layout of "organization settings" for
non-administrators such that they can view "Bots" ("Actions"
column is not made visible).
This commit is contained in:
Abhijeet Kaur 2017-04-15 01:18:50 +05:30 committed by Tim Abbott
parent 3f0e33e498
commit f1e966bfaa
2 changed files with 5 additions and 1 deletions

View File

@ -6,7 +6,9 @@
<th class="wrapped-cell">{{t "Name" }}</th> <th class="wrapped-cell">{{t "Name" }}</th>
<th>{{t "Email" }}</th> <th>{{t "Email" }}</th>
<th>{{t "Owner" }}</th> <th>{{t "Owner" }}</th>
{{#if is_admin}}
<th>{{t "Actions" }}</th> <th>{{t "Actions" }}</th>
{{/if}}
</tbody> </tbody>
</table> </table>
<div id="admin_page_bots_loading_indicator"></div> <div id="admin_page_bots_loading_indicator"></div>

View File

@ -57,10 +57,12 @@
<i class="icon icon-vector-trash"></i> <i class="icon icon-vector-trash"></i>
<div class="text">{{ _('Deactivated users') }}</div> <div class="text">{{ _('Deactivated users') }}</div>
</li> </li>
{% endif %}
<li class="admin" tabindex="1" data-section="bot-list-admin"> <li class="admin" tabindex="1" data-section="bot-list-admin">
<i class="icon icon-vector-github"></i> <i class="icon icon-vector-github"></i>
<div class="text">{{ _('Bots') }}</div> <div class="text">{{ _('Bots') }}</div>
</li> </li>
{% if is_admin %}
<li class="admin" tabindex="1" data-section="streams-list-admin"> <li class="admin" tabindex="1" data-section="streams-list-admin">
<i class="icon icon-vector-exchange"></i> <i class="icon icon-vector-exchange"></i>
<div class="text">{{ _('Delete streams') }}</div> <div class="text">{{ _('Delete streams') }}</div>