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
|
- Playlist management
|
||||||
- Authentication management
|
- Authentication management
|
||||||
- Plays content from flashdrive in offline mode
|
- 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)
|
- [Multi Languages](https://github.com/jr-k/obscreen/tree/master/lang)
|
||||||
- Cast pictures and iframes to Chromecast
|
- Cast pictures and iframes to Chromecast
|
||||||
- No costly monthly pricing plan per screen or whatever, no cloud, no telemetry
|
- No costly monthly pricing plan per screen or whatever, no cloud, no telemetry
|
||||||
|
|||||||
@ -69,6 +69,7 @@ class AuthController(ObController):
|
|||||||
'auth/list.jinja.html',
|
'auth/list.jinja.html',
|
||||||
error=request.args.get('error', None),
|
error=request.args.get('error', None),
|
||||||
users=self._model_store.user().get_users(exclude=User.DEFAULT_USER if demo else 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):
|
def auth_user_add(self):
|
||||||
|
|||||||
@ -6,6 +6,7 @@
|
|||||||
<div class="tile-body">
|
<div class="tile-body">
|
||||||
{{ truncate(user.username, 100, '...') }}
|
{{ truncate(user.username, 100, '...') }}
|
||||||
</div>
|
</div>
|
||||||
|
{% if plugin_core_api_enabled %}
|
||||||
<div class="tile-metrics">
|
<div class="tile-metrics">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<div class="widget">
|
<div class="widget">
|
||||||
@ -16,10 +17,13 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
{% endif %}
|
||||||
<div class="tile-tail">
|
<div class="tile-tail">
|
||||||
|
{% if plugin_core_api_enabled %}
|
||||||
<button type="button" class="btn btn-other user-token-reveal">
|
<button type="button" class="btn btn-other user-token-reveal">
|
||||||
<i class="fa fa-eye"></i>
|
<i class="fa fa-eye"></i>
|
||||||
</button>
|
</button>
|
||||||
|
{% endif %}
|
||||||
<a href="javascript:void(0);" class="item-edit user-edit btn btn-info">
|
<a href="javascript:void(0);" class="item-edit user-edit btn btn-info">
|
||||||
<i class="fa fa-pencil"></i>
|
<i class="fa fa-pencil"></i>
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user