conditionnal token if plugin enabled
This commit is contained in:
parent
1e5e9f0209
commit
5fba1a4300
@ -28,7 +28,7 @@ It is a temporary live demo, all data will be deleted after 30 minutes (~30secs
|
||||
- Playlist management
|
||||
- Authentication management
|
||||
- Plays content from flashdrive in offline mode
|
||||
- Plugin system to extend capabilities
|
||||
- Core API & Plugin system to extend capabilities
|
||||
- [Multi Languages](https://github.com/jr-k/obscreen/tree/master/lang)
|
||||
- Cast pictures and iframes to Chromecast
|
||||
- No costly monthly pricing plan per screen or whatever, no cloud, no telemetry
|
||||
|
||||
@ -69,6 +69,7 @@ class AuthController(ObController):
|
||||
'auth/list.jinja.html',
|
||||
error=request.args.get('error', None),
|
||||
users=self._model_store.user().get_users(exclude=User.DEFAULT_USER if demo else None),
|
||||
plugin_core_api_enabled=self._model_store.variable().map().get('plugin_core_api_enabled').as_bool()
|
||||
)
|
||||
|
||||
def auth_user_add(self):
|
||||
|
||||
@ -6,6 +6,7 @@
|
||||
<div class="tile-body">
|
||||
{{ truncate(user.username, 100, '...') }}
|
||||
</div>
|
||||
{% if plugin_core_api_enabled %}
|
||||
<div class="tile-metrics">
|
||||
<div class="form-group">
|
||||
<div class="widget">
|
||||
@ -16,10 +17,13 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="tile-tail">
|
||||
{% if plugin_core_api_enabled %}
|
||||
<button type="button" class="btn btn-other user-token-reveal">
|
||||
<i class="fa fa-eye"></i>
|
||||
</button>
|
||||
{% endif %}
|
||||
<a href="javascript:void(0);" class="item-edit user-edit btn btn-info">
|
||||
<i class="fa fa-pencil"></i>
|
||||
</a>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user