1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fixes #2565: Improved rendering of Markdown tables

This commit is contained in:
Jeremy Stretch
2018-11-13 11:02:48 -05:00
parent 0c33af2140
commit 2fce7ebd8f
11 changed files with 23 additions and 9 deletions

View File

@ -4,6 +4,7 @@ v2.4.8 (FUTURE)
* [#2473](https://github.com/digitalocean/netbox/issues/2473) - Fix encoding of long (>127 character) secrets * [#2473](https://github.com/digitalocean/netbox/issues/2473) - Fix encoding of long (>127 character) secrets
* [#2558](https://github.com/digitalocean/netbox/issues/2558) - Filter on all tags when multiple are passed * [#2558](https://github.com/digitalocean/netbox/issues/2558) - Filter on all tags when multiple are passed
* [#2565](https://github.com/digitalocean/netbox/issues/2565) - Improved rendering of Markdown tables
* [#2575](https://github.com/digitalocean/netbox/issues/2575) - Correct model specified for rack roles table * [#2575](https://github.com/digitalocean/netbox/issues/2575) - Correct model specified for rack roles table
--- ---

View File

@ -390,6 +390,19 @@ table.report th a {
top: -51px; top: -51px;
} }
/* Rendered Markdown */
.rendered-markdown table {
width: 100%;
}
.rendered-markdown th {
border-bottom: 2px solid #dddddd;
padding: 8px;
}
.rendered-markdown td {
border-top: 1px solid #dddddd;
padding: 8px;
}
/* AJAX loader */ /* AJAX loader */
.loading { .loading {
position: fixed; position: fixed;

View File

@ -131,7 +131,7 @@
<div class="panel-heading"> <div class="panel-heading">
<strong>Comments</strong> <strong>Comments</strong>
</div> </div>
<div class="panel-body"> <div class="panel-body rendered-markdown">
{% if circuit.comments %} {% if circuit.comments %}
{{ circuit.comments|gfm }} {{ circuit.comments|gfm }}
{% else %} {% else %}

View File

@ -129,7 +129,7 @@
<div class="panel-heading"> <div class="panel-heading">
<strong>Comments</strong> <strong>Comments</strong>
</div> </div>
<div class="panel-body"> <div class="panel-body rendered-markdown">
{% if provider.comments %} {% if provider.comments %}
{{ provider.comments|gfm }} {{ provider.comments|gfm }}
{% else %} {% else %}

View File

@ -290,7 +290,7 @@
<div class="panel-heading"> <div class="panel-heading">
<strong>Comments</strong> <strong>Comments</strong>
</div> </div>
<div class="panel-body"> <div class="panel-body rendered-markdown">
{% if device.comments %} {% if device.comments %}
{{ device.comments|gfm }} {{ device.comments|gfm }}
{% else %} {% else %}

View File

@ -164,7 +164,7 @@
<div class="panel-heading"> <div class="panel-heading">
<strong>Comments</strong> <strong>Comments</strong>
</div> </div>
<div class="panel-body"> <div class="panel-body rendered-markdown">
{% if devicetype.comments %} {% if devicetype.comments %}
{{ devicetype.comments|gfm }} {{ devicetype.comments|gfm }}
{% else %} {% else %}

View File

@ -164,7 +164,7 @@
<div class="panel-heading"> <div class="panel-heading">
<strong>Comments</strong> <strong>Comments</strong>
</div> </div>
<div class="panel-body"> <div class="panel-body rendered-markdown">
{% if rack.comments %} {% if rack.comments %}
{{ rack.comments|gfm }} {{ rack.comments|gfm }}
{% else %} {% else %}

View File

@ -230,7 +230,7 @@
<div class="panel-heading"> <div class="panel-heading">
<strong>Comments</strong> <strong>Comments</strong>
</div> </div>
<div class="panel-body"> <div class="panel-body rendered-markdown">
{% if site.comments %} {% if site.comments %}
{{ site.comments|gfm }} {{ site.comments|gfm }}
{% else %} {% else %}

View File

@ -87,7 +87,7 @@
<div class="panel-heading"> <div class="panel-heading">
<strong>Comments</strong> <strong>Comments</strong>
</div> </div>
<div class="panel-body"> <div class="panel-body rendered-markdown">
{% if tenant.comments %} {% if tenant.comments %}
{{ tenant.comments|gfm }} {{ tenant.comments|gfm }}
{% else %} {% else %}

View File

@ -99,7 +99,7 @@
<div class="panel-heading"> <div class="panel-heading">
<strong>Comments</strong> <strong>Comments</strong>
</div> </div>
<div class="panel-body"> <div class="panel-body rendered-markdown">
{% if cluster.comments %} {% if cluster.comments %}
{{ cluster.comments|gfm }} {{ cluster.comments|gfm }}
{% else %} {% else %}

View File

@ -143,7 +143,7 @@
<div class="panel-heading"> <div class="panel-heading">
<strong>Comments</strong> <strong>Comments</strong>
</div> </div>
<div class="panel-body"> <div class="panel-body rendered-markdown">
{% if virtualmachine.comments %} {% if virtualmachine.comments %}
{{ virtualmachine.comments|gfm }} {{ virtualmachine.comments|gfm }}
{% else %} {% else %}