Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
AE UTBM
Sith
Commits
a89fb23d
Commit
a89fb23d
authored
Jun 10, 2017
by
Skia
🤘
Browse files
That's just a ridiculous little fix
Signed-off-by:
Skia
<
skia@libskia.so
>
parent
ce46a9d9
Pipeline
#1049
failed with stage
in 4 minutes and 42 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
core/views/forms.py
View file @
a89fb23d
...
...
@@ -78,7 +78,7 @@ class MarkdownInput(Textarea):
def
render
(
self
,
name
,
value
,
attrs
=
None
):
output
=
'<p><a href="%(syntax_url)s">%(help_text)s</a></p>'
\
'<div class="markdown_editor">%(content)s</div>'
%
{
'syntax_url'
:
Page
.
get_page_by_full_name
(
settings
.
SITH_CORE_PAGE_SYNTAX
),
'syntax_url'
:
Page
.
get_page_by_full_name
(
settings
.
SITH_CORE_PAGE_SYNTAX
)
.
get_absolute_url
()
,
'help_text'
:
_
(
"Help on the syntax"
),
'content'
:
super
(
MarkdownInput
,
self
).
render
(
name
,
value
,
attrs
),
}
...
...
Write
Preview
Supports
Markdown
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