Skip to content
Snippets Groups Projects
Commit 43c23e64 authored by jan.bednarik's avatar jan.bednarik
Browse files

uniweb: Markdown in tables

parent e09d08a2
No related branches found
No related tags found
2 merge requests!204release,!203Uniweb
...@@ -30,6 +30,12 @@ ...@@ -30,6 +30,12 @@
background-position: 0 0; background-position: 0 0;
padding: 0 0 1em 35px !important; padding: 0 0 1em 35px !important;
} }
.content-block a {
color: #004958;
}
.text-white a {
color: #FFFFFF;
}
</style> </style>
{% if page.root_page.matomo_id %} {% if page.root_page.matomo_id %}
......
{% load table_block_tags %} {% load table_block_tags shared_filters %}
<div class="my-6"> <div class="my-6">
<table class="table table--bordered table--condensed mx-auto"> <table class="table table--bordered mx-auto content-block">
{% if table_caption %} {% if table_caption %}
<caption class="head-heavy-sm my-4">{{ table_caption }}</caption> <caption class="head-heavy-sm my-4">{{ table_caption }}</caption>
{% endif %} {% endif %}
...@@ -12,11 +12,7 @@ ...@@ -12,11 +12,7 @@
{% with forloop.counter0 as col_index %} {% with forloop.counter0 as col_index %}
<th scope="col" {% cell_classname 0 col_index %}> <th scope="col" {% cell_classname 0 col_index %}>
{% if column.strip %} {% if column.strip %}
{% if html_renderer %} {{ column.strip|markdown }}
{{ column.strip|safe|linebreaksbr }}
{% else %}
{{ column.strip|linebreaksbr }}
{% endif %}
{% endif %} {% endif %}
</th> </th>
{% endwith %} {% endwith %}
...@@ -33,21 +29,13 @@ ...@@ -33,21 +29,13 @@
{% if first_col_is_header and forloop.first %} {% if first_col_is_header and forloop.first %}
<th scope="row" {% cell_classname row_index col_index table_header %}> <th scope="row" {% cell_classname row_index col_index table_header %}>
{% if column.strip %} {% if column.strip %}
{% if html_renderer %} {{ column.strip|markdown }}
{{ column.strip|safe|linebreaksbr }}
{% else %}
{{ column.strip|linebreaksbr }}
{% endif %}
{% endif %} {% endif %}
</th> </th>
{% else %} {% else %}
<td {% cell_classname row_index col_index table_header %}> <td {% cell_classname row_index col_index table_header %}>
{% if column.strip %} {% if column.strip %}
{% if html_renderer %} {{ column.strip|markdown }}
{{ column.strip|safe|linebreaksbr }}
{% else %}
{{ column.strip|linebreaksbr }}
{% endif %}
{% endif %} {% endif %}
</td> </td>
{% endif %} {% endif %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment