Skip to content

Commit

Permalink
#1330 - Update views of controllers and system info
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeckerson committed Dec 1, 2019
1 parent 7975dca commit 55f8392
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 16 deletions.
1 change: 0 additions & 1 deletion src/Web/Tools/Controllers/ControllersController.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ public function indexAction(): void

$this->view->setVars(
[
'page_subtitle' => 'All controllers that we managed to find',
'controllers' => $controllers,
'controllers_dir' => $controllersDir,
]
Expand Down
25 changes: 14 additions & 11 deletions src/Web/Tools/Views/controllers/index.volt
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,15 @@
<div class="col-sm-12">
{{ content() }}
{{ flashSession.output() }}
<div class="box">
<div class="box-header">
<h3 class="box-title">Controllers List</h3>
{{ link_to(webtools_uri ~ "/controllers/generate", "Generate", 'class': 'btn btn-primary pull-right') }}
<div class="card card-secondary">
<div class="card-header">
<h3 class="card-title">
Controllers List<br />
<small>All controllers that we managed to find</small>
</h3>
<div class="card-tools">
{{ link_to(webtools_uri ~ "/controllers/generate", "Generate", 'class': 'btn btn-primary') }}
</div>
</div>
<div class="box-body table-responsive no-padding">
<table class="table table-hover">
Expand All @@ -30,19 +35,17 @@
{% for controller in controllers %}
<tr>
<td>
<h5>
{{- controller.name }}
{% if controller.is_writable is false -%}
<span class="label label-warning">ro</span>
{%- endif -%}
</h5>
{{- controller.name }}
{% if controller.is_writable is false -%}
<span class="label label-warning">ro</span>
{%- endif -%}
</td>
<td>{{ controller.size ~ ' b'}}</td>
<td>{{ controller.owner }}</td>
<td>{{ controller.modified_time }}</td>
<td>
{{ link_to(webtools_uri ~ "/controllers/edit/" ~ rawurlencode(controller.filename),
'<i class="fa fa-pencil"></i>', 'class': 'btn btn-default btn-xs') }}
'<i class="fas fa-pen-square"></i>', 'class': 'btn btn-warning btn-sm') }}
</td>
</tr>
{% endfor %}
Expand Down
3 changes: 2 additions & 1 deletion src/Web/Tools/Views/partials/content_header.volt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<div class="container-fluid">
{%- if page_title is defined and page_title is not empty -%}
<h1>
{{- page_title }}
{{- page_title }}&nbsp;

{%- if page_subtitle is defined and page_subtitle is not empty -%}
<small>{{ page_subtitle -}}</small>
{%- endif -%}
Expand Down
6 changes: 3 additions & 3 deletions src/Web/Tools/Views/system_info/index.volt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<div class="row">
<div class="col-xs-12">
<div class="col-md-6">
{{ content() }}
{{ flashSession.output() }}
<div class="box">
<div class="box-body table-responsive no-padding">
<div class="card card-secondary">
<div class="card-body table-responsive">
<table class="table">
<tbody>
<tr>
Expand Down

0 comments on commit 55f8392

Please sign in to comment.