Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Maják
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TO
Maják
Commits
43c23e64
Commit
43c23e64
authored
4 years ago
by
jan.bednarik
Browse files
Options
Downloads
Patches
Plain Diff
uniweb: Markdown in tables
parent
e09d08a2
No related branches found
No related tags found
2 merge requests
!204
release
,
!203
Uniweb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
uniweb/templates/uniweb/base.html
+6
-0
6 additions, 0 deletions
uniweb/templates/uniweb/base.html
uniweb/templates/uniweb/blocks/table.html
+5
-17
5 additions, 17 deletions
uniweb/templates/uniweb/blocks/table.html
with
11 additions
and
17 deletions
uniweb/templates/uniweb/base.html
+
6
−
0
View file @
43c23e64
...
@@ -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 %}
...
...
This diff is collapsed.
Click to expand it.
uniweb/templates/uniweb/blocks/table.html
+
5
−
17
View file @
43c23e64
{% load table_block_tags %}
{% load table_block_tags
shared_filters
%}
<div
class=
"my-6"
>
<div
class=
"my-6"
>
<table
class=
"table table--bordered
table--
con
d
en
sed mx-auto
"
>
<table
class=
"table table--bordered
mx-auto
con
t
en
t-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 %}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment