minor changes on public link report

This commit is contained in:
jordi.nadeu 2019-10-22 17:53:26 +02:00
parent b99a332cd8
commit 38bd39dd9a
1 changed files with 31 additions and 7 deletions

View File

@ -10,16 +10,31 @@
crossorigin="anonymous"> crossorigin="anonymous">
<script src="https://use.fontawesome.com/7553aecc27.js"></script> <script src="https://use.fontawesome.com/7553aecc27.js"></script>
<title>Devicehub | {{ device.__format__('t') }}</title> <title>Devicehub | {{ device.__format__('t') }}</title>
<style>
/*Sticky footer*/
html {
position: relative;
min-height: 100%;
}
body {
margin-bottom: 60px; /* Margin bottom by footer height */
}
.footer {
position: absolute;
bottom: 0;
width: 100%;
height: 6em;
}
</style>
</head> </head>
<body> <body>
<nav class="navbar navbar-default" style="background-color: gainsboro; margin: 0 !important"> <nav class="navbar navbar-default" style="background-color: gainsboro; margin: 0 !important">
<div class="container-fluid"> <div class="container-fluid">
<a href="https://www.usody.com/" target="_blank"> <a href="https://www.usody.com/" target="_blank">
<img alt="Brand" <h1 align="center">Usody Public Link</h1>
class="center-block"
style="height: 4em; padding-bottom: 0.1em"
src="{{ url_for('Device.static', filename='usody-logo-v4.svg') }}">
</a> </a>
</div> </div>
</nav> </nav>
@ -56,7 +71,7 @@
CPU {{ device.processor_model }} CPU {{ device.processor_model }}
</td> </td>
<td> <td>
{% if device.rate %} Processor Rate = {% if device.rate %}
{{ device.rate.processor_range }} {{ device.rate.processor_range }}
({{ device.rate.processor }}) ({{ device.rate.processor }})
{% endif %} {% endif %}
@ -70,7 +85,7 @@
{{ macros.component_type(device.components, 'RamModule') }} {{ macros.component_type(device.components, 'RamModule') }}
</td> </td>
<td> <td>
{% if device.rate %} RAM Rate = {% if device.rate %}
{{ device.rate.ram_range }} {{ device.rate.ram_range }}
({{ device.rate.ram }}) ({{ device.rate.ram }})
{% endif %} {% endif %}
@ -85,7 +100,7 @@
{{ macros.component_type(device.components, 'HardDrive') }} {{ macros.component_type(device.components, 'HardDrive') }}
</td> </td>
<td> <td>
{% if device.rate %} Data Storage Rate = {% if device.rate %}
{{ device.rate.data_storage_range }} {{ device.rate.data_storage_range }}
({{ device.rate.data_storage }}) ({{ device.rate.data_storage }})
{% endif %} {% endif %}
@ -190,5 +205,14 @@
</div> </div>
</div> </div>
</div> </div>
<footer class="container-fluid footer">
<div class="row">
<div class="col-md-4">
Page generated by:<br>
<img style="height: 9em"
src="{{ url_for('Device.static', filename='usody-logo-v4.svg') }}">
</div>
</div>
</footer>
</body> </body>
</html> </html>