Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
4d80360b
Commit
4d80360b
authored
Jun 30, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cache markdown of comments
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
40e31e1d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
app/views/projects/notes/_note.html.haml
app/views/projects/notes/_note.html.haml
+5
-4
No files found.
app/views/projects/notes/_note.html.haml
View file @
4d80360b
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
-
if
member
-
if
member
%span
.note-role.label
%span
.note-role.label
=
member
.
human_access
=
member
.
human_access
-
if
note
.
system
-
if
note
.
system
=
link_to
user_path
(
note
.
author
)
do
=
link_to
user_path
(
note
.
author
)
do
=
image_tag
avatar_icon
(
note
.
author_email
),
class:
'avatar s16'
,
alt:
''
=
image_tag
avatar_icon
(
note
.
author_email
),
class:
'avatar s16'
,
alt:
''
...
@@ -56,9 +56,10 @@
...
@@ -56,9 +56,10 @@
.note-body
{
class:
note_editable?
(
note
)
?
'js-task-list-container'
:
''
}
.note-body
{
class:
note_editable?
(
note
)
?
'js-task-list-container'
:
''
}
.note-text
=
cache
[
note
,
'markdown'
]
do
=
preserve
do
.note-text
=
markdown
(
note
.
note
,
{
no_header_anchors:
true
})
=
preserve
do
=
markdown
(
note
.
note
,
{
no_header_anchors:
true
})
=
render
'projects/notes/edit_form'
,
note:
note
=
render
'projects/notes/edit_form'
,
note:
note
-
if
note
.
attachment
.
url
-
if
note
.
attachment
.
url
...
...
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