mirror of
https://github.com/fastogt/fastocloud_admin.git
synced 2025-03-09 23:38:52 +00:00
CSS
This commit is contained in:
parent
46bdefd2ef
commit
ac77465228
3 changed files with 521 additions and 494 deletions
|
@ -5,14 +5,15 @@ Activate service | {{ config['PUBLIC_CONFIG'].site.title }}
|
|||
|
||||
|
||||
{% block content %}
|
||||
<div class="container center-block">
|
||||
<div class="panel panel-default text-center">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<h1 class="panel-title">
|
||||
<a href="{{ url_for('HomeView:index') }}">{{ config['PUBLIC_CONFIG'].site.title }}</a>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<div class="container-fluid">
|
||||
<div class="row well">
|
||||
<h3>{% trans %}License{% endtrans %}</h3>
|
||||
<p>{% trans %}Note: Please activate service.{% endtrans %}</p>
|
||||
{{ util.flashed_messages(dismissible=True, container=False) }}
|
||||
|
@ -26,12 +27,13 @@ Activate service | {{ config['PUBLIC_CONFIG'].site.title }}
|
|||
{{ form_field(form.submit, class="btn") }}
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div class="text-center">
|
||||
<div class="row">
|
||||
<a href="{{ url_for('UserView:dashboard') }}" role="button" class="btn btn-info">
|
||||
{% trans %}Dashboard{% endtrans %}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{%- endblock %}
|
||||
|
||||
|
|
|
@ -44,12 +44,20 @@ Dashboard | {{ config['PUBLIC_CONFIG'].site.title }}
|
|||
th.stream_actions {
|
||||
width: 25%;
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
{{super()}}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="container-fluid">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<h1 class="panel-title"><a
|
||||
href="{{ url_for('HomeView:index') }}">{{ config['PUBLIC_CONFIG'].site.title }}</a></h1>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<div class="container-fluid">
|
||||
<div class="row well">
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
|
@ -100,7 +108,7 @@ Dashboard | {{ config['PUBLIC_CONFIG'].site.title }}
|
|||
</div>
|
||||
<div class="col-md-1">
|
||||
<a href="{{ url_for('ServiceView:activate') }}" role="button"
|
||||
{% if (service.status == service.status.INIT) %}
|
||||
{% if (service.status== service.status.INIT) %}
|
||||
class="btn btn-info disabled"
|
||||
{% else %}
|
||||
class="btn btn-info"
|
||||
|
@ -110,7 +118,7 @@ Dashboard | {{ config['PUBLIC_CONFIG'].site.title }}
|
|||
</div>
|
||||
<div class="col-md-1">
|
||||
<a href="{{ url_for('ServiceView:sync') }}" role="button"
|
||||
{% if (service.status == service.status.INIT) %}
|
||||
{% if (service.status== service.status.INIT) %}
|
||||
class="btn btn-info disabled"
|
||||
{% else %}
|
||||
class="btn btn-info"
|
||||
|
@ -130,7 +138,7 @@ Dashboard | {{ config['PUBLIC_CONFIG'].site.title }}
|
|||
</div>
|
||||
<div class="col-md-1">
|
||||
<a href="{{ url_for('ServiceView:ping') }}" role="button"
|
||||
{% if (service.status == service.status.ACTIVE) %}
|
||||
{% if (service.status== service.status.ACTIVE) %}
|
||||
class="btn btn-info"
|
||||
{% else %}
|
||||
class="btn btn-info disabled"
|
||||
|
@ -140,7 +148,7 @@ Dashboard | {{ config['PUBLIC_CONFIG'].site.title }}
|
|||
</div>
|
||||
<div class="col-md-1">
|
||||
<a href="{{ url_for('ServiceView:stop') }}" role="button"
|
||||
{% if (service.status == service.status.ACTIVE) %}
|
||||
{% if (service.status== service.status.ACTIVE) %}
|
||||
class="btn btn-warning"
|
||||
{% else %}
|
||||
class="btn btn-warning disabled"
|
||||
|
@ -151,7 +159,7 @@ Dashboard | {{ config['PUBLIC_CONFIG'].site.title }}
|
|||
{% if (role == 3) %}
|
||||
<div class="col-md-1">
|
||||
<a href="{{ url_for('ServiceView:get_log') }}" role="button"
|
||||
{% if (service.status == service.status.ACTIVE) %}
|
||||
{% if (service.status== service.status.ACTIVE) %}
|
||||
class="btn btn-success"
|
||||
{% else %}
|
||||
class="btn btn-success disabled"
|
||||
|
@ -285,7 +293,7 @@ Dashboard | {{ config['PUBLIC_CONFIG'].site.title }}
|
|||
<td>{{ rev.timestamp - rev.loop_start_time }}</td>
|
||||
<td>
|
||||
<button type="submit"
|
||||
{% if (service.status == service.status.ACTIVE) %}
|
||||
{% if (service.status== service.status.ACTIVE) %}
|
||||
class="btn btn-success btn-xs"
|
||||
{% else %}
|
||||
class="btn btn-success btn-xs" disabled
|
||||
|
@ -294,7 +302,7 @@ Dashboard | {{ config['PUBLIC_CONFIG'].site.title }}
|
|||
{% trans %}Start{% endtrans %}
|
||||
</button>
|
||||
<button type="submit"
|
||||
{% if (service.status == service.status.ACTIVE) %}
|
||||
{% if (service.status== service.status.ACTIVE) %}
|
||||
class="btn btn-success btn-xs"
|
||||
{% else %}
|
||||
class="btn btn-success btn-xs" disabled
|
||||
|
@ -303,7 +311,7 @@ Dashboard | {{ config['PUBLIC_CONFIG'].site.title }}
|
|||
{% trans %}Stop{% endtrans %}
|
||||
</button>
|
||||
<button type="submit"
|
||||
{% if (service.status == service.status.ACTIVE) %}
|
||||
{% if (service.status== service.status.ACTIVE) %}
|
||||
class="btn btn-success btn-xs"
|
||||
{% else %}
|
||||
class="btn btn-success btn-xs" disabled
|
||||
|
@ -321,7 +329,7 @@ Dashboard | {{ config['PUBLIC_CONFIG'].site.title }}
|
|||
</button>
|
||||
{% if (role == 3) %}
|
||||
<button type="submit"
|
||||
{% if (service.status == service.status.ACTIVE) %}
|
||||
{% if (service.status== service.status.ACTIVE) %}
|
||||
class="btn btn-success btn-xs"
|
||||
{% else %}
|
||||
class="btn btn-success btn-xs" disabled
|
||||
|
@ -335,7 +343,7 @@ Dashboard | {{ config['PUBLIC_CONFIG'].site.title }}
|
|||
{% trans %}View log{% endtrans %}
|
||||
</a>
|
||||
<button type="submit"
|
||||
{% if (service.status == service.status.ACTIVE) %}
|
||||
{% if (service.status== service.status.ACTIVE) %}
|
||||
class="btn btn-success btn-xs"
|
||||
{% else %}
|
||||
class="btn btn-success btn-xs" disabled
|
||||
|
@ -363,13 +371,15 @@ Dashboard | {{ config['PUBLIC_CONFIG'].site.title }}
|
|||
<button class="btn btn-success btn-send col-md-2" onclick="add_encode_stream()">
|
||||
{% trans %}Add encode{% endtrans %}
|
||||
</button>
|
||||
<button class="btn btn-success btn-send col-md-2" onclick="add_timeshift_recorder_stream()">
|
||||
<button class="btn btn-success btn-send col-md-2"
|
||||
onclick="add_timeshift_recorder_stream()">
|
||||
{% trans %}Add timeshift recorder{% endtrans %}
|
||||
</button>
|
||||
<button class="btn btn-success btn-send col-md-2" onclick="add_catchup_stream()">
|
||||
{% trans %}Add catchup{% endtrans %}
|
||||
</button>
|
||||
<button class="btn btn-success btn-send col-md-2" onclick="add_timeshift_player_stream()">
|
||||
<button class="btn btn-success btn-send col-md-2"
|
||||
onclick="add_timeshift_player_stream()">
|
||||
{% trans %}Add timeshift player{% endtrans %}
|
||||
</button>
|
||||
<button class="btn btn-success btn-send col-md-2" onclick="add_test_life_stream()">
|
||||
|
@ -419,7 +429,7 @@ Dashboard | {{ config['PUBLIC_CONFIG'].site.title }}
|
|||
<td>{{ vod.timestamp - vod.loop_start_time }}</td>
|
||||
<td>
|
||||
<button type="submit"
|
||||
{% if (service.status == service.status.ACTIVE) %}
|
||||
{% if (service.status== service.status.ACTIVE) %}
|
||||
class="btn btn-success btn-xs"
|
||||
{% else %}
|
||||
class="btn btn-success btn-xs" disabled
|
||||
|
@ -432,7 +442,7 @@ Dashboard | {{ config['PUBLIC_CONFIG'].site.title }}
|
|||
{% trans %}Edit{% endtrans %}
|
||||
</button>
|
||||
<button type="submit"
|
||||
{% if (service.status == service.status.ACTIVE) %}
|
||||
{% if (service.status== service.status.ACTIVE) %}
|
||||
class="btn btn-success btn-xs"
|
||||
{% else %}
|
||||
class="btn btn-success btn-xs" disabled
|
||||
|
@ -468,6 +478,8 @@ Dashboard | {{ config['PUBLIC_CONFIG'].site.title }}
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="stream_dialog" class="modal fade" tabindex=-1 role="dialog">
|
||||
|
@ -788,5 +800,7 @@ Dashboard | {{ config['PUBLIC_CONFIG'].site.title }}
|
|||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
|
|
@ -17,7 +17,13 @@ Settings | {{ config['PUBLIC_CONFIG'].site.title }}
|
|||
{{super()}}
|
||||
{% endblock %}
|
||||
{% block content %}
|
||||
<div class="container">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<h1 class="panel-title"><a
|
||||
href="{{ url_for('HomeView:index') }}">{{ config['PUBLIC_CONFIG'].site.title }}</a></h1>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<div class="container-fluid">
|
||||
<div class="row well">
|
||||
<div class="col-md-8">
|
||||
<p>{% trans %}Settings{% endtrans %}</p>
|
||||
|
@ -60,14 +66,16 @@ Settings | {{ config['PUBLIC_CONFIG'].site.title }}
|
|||
<td>{{ loop.index }}</td>
|
||||
<td>{{ server.name }}</td>
|
||||
<td>
|
||||
<button type="submit" class="btn btn-success btn-xs" onclick="edit_server('{{ server.id }}')">
|
||||
<button type="submit" class="btn btn-success btn-xs"
|
||||
onclick="edit_server('{{ server.id }}')">
|
||||
{% trans %}Edit{% endtrans %}
|
||||
</button>
|
||||
<button type="submit" class="btn btn-success btn-xs"
|
||||
onclick="add_user_to_server('{{ server.id }}')">
|
||||
{% trans %}Add user{% endtrans %}
|
||||
</button>
|
||||
<button type="submit" class="btn btn-danger btn-xs" onclick="remove_server('{{ server.id }}')">
|
||||
<button type="submit" class="btn btn-danger btn-xs"
|
||||
onclick="remove_server('{{ server.id }}')">
|
||||
{% trans %}Remove{% endtrans %}
|
||||
</button>
|
||||
</td>
|
||||
|
@ -78,12 +86,12 @@ Settings | {{ config['PUBLIC_CONFIG'].site.title }}
|
|||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-2">
|
||||
<button type="submit" class="btn btn-success" onclick="add_server()">
|
||||
{% trans %}Add server{% endtrans %}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="service_dialog" class="modal fade" tabindex=-1 role="dialog">
|
||||
<div class="modal-dialog" role="document">
|
||||
|
@ -206,5 +214,8 @@ Settings | {{ config['PUBLIC_CONFIG'].site.title }}
|
|||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue