Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
V
validata-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
19
Issues
19
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Validata
validata-ui
Commits
a05ae766
Commit
a05ae766
authored
Jun 24, 2019
by
Pierre Dittgen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use markdown in headers
parent
657b8d41
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
validata_ui/__init__.py
validata_ui/__init__.py
+10
-0
validata_ui/templates/validation_macros.html
validata_ui/templates/validation_macros.html
+1
-1
No files found.
validata_ui/__init__.py
View file @
a05ae766
...
...
@@ -11,6 +11,7 @@ import jinja2
import
pkg_resources
import
requests
import
tableschema
from
commonmark
import
commonmark
import
opendataschema
...
...
@@ -97,6 +98,15 @@ def urlencode(context, value):
return
quote_plus
(
value
)
@
jinja2
.
contextfilter
@
blueprint
.
app_template_filter
()
def
commonmark2html
(
context
,
value
):
return
commonmark
(
value
)
app
.
register_blueprint
(
blueprint
)
@
app
.
context_processor
def
inject_version
():
global
VERSION
...
...
validata_ui/templates/validation_macros.html
View file @
a05ae766
...
...
@@ -73,7 +73,7 @@
<thead
class=
"thead-light"
>
<th
scope=
"col"
>
1
</th>
{% for h in source_data.header %}
<th
scope=
"col"
data-toggle=
"popover"
title=
"{{ report.table.headers_title[loop.index - 1]
}}"
data-content=
"{{ report.table.headers_description[loop.index - 1]
}}"
>
{{
<th
scope=
"col"
data-toggle=
"popover"
title=
"{{ report.table.headers_title[loop.index - 1]
}}"
data-content=
"{{ report.table.headers_description[loop.index - 1] | commonmark2html | escape
}}"
>
{{
h }}
</th>
{% endfor %}
</thead>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment