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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
iv
gitlab-ce
Commits
02f3c7eb
Commit
02f3c7eb
authored
Dec 20, 2014
by
Sacred Seven
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing email and markdown RTL
closes #1
parent
2bfeb280
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
3 additions
and
36 deletions
+3
-36
app/assets/javascripts/application.js.coffee
app/assets/javascripts/application.js.coffee
+0
-3
app/helpers/gitlab_markdown_helper.rb
app/helpers/gitlab_markdown_helper.rb
+3
-1
app/views/notify/_note_message.html.haml
app/views/notify/_note_message.html.haml
+0
-8
app/views/notify/new_issue_email.html.haml
app/views/notify/new_issue_email.html.haml
+0
-8
app/views/notify/new_merge_request_email.html.haml
app/views/notify/new_merge_request_email.html.haml
+0
-8
app/views/notify/repository_push_email.html.haml
app/views/notify/repository_push_email.html.haml
+0
-8
No files found.
app/assets/javascripts/application.js.coffee
View file @
02f3c7eb
...
...
@@ -183,9 +183,6 @@ $ ->
$
(
@
).
closest
(
".diff-file"
).
find
(
".notes_holder"
).
toggle
()
e
.
preventDefault
()
# RTL Support in wiki pages
$
(
'.wiki'
).
find
(
'*'
).
not
(
'li'
).
attr
(
'dir'
,
'auto'
);
$
(
document
).
on
"click"
,
'.js-confirm-danger'
,
(
e
)
->
e
.
preventDefault
()
btn
=
$
(
e
.
target
)
...
...
app/helpers/gitlab_markdown_helper.rb
View file @
02f3c7eb
...
...
@@ -48,7 +48,9 @@ module GitlabMarkdownHelper
space_after_headers:
true
,
superscript:
true
)
end
@markdown
.
render
(
text
).
html_safe
html_doc
=
Nokogiri
::
HTML
(
@markdown
.
render
(
text
))
html_doc
.
css
(
':not(li)'
).
each
{
|
dom
|
dom
[
:dir
]
=
:auto
}
html_doc
.
to_html
.
html_safe
end
# Return the first line of +text+, up to +max_chars+, after parsing the line
...
...
app/views/notify/_note_message.html.haml
View file @
02f3c7eb
%div
=
markdown
(
@note
.
note
)
:javascript
document
.
addEventListener
(
"
DOMContentLoaded
"
,
function
(
event
)
{
var
elements
=
document
.
getElementsByTagName
(
"
*
"
);
for
(
var
i
=
0
;
i
<
elements
.
length
;
++
i
)
{
elements
[
i
].
setAttribute
(
"
dir
"
,
"
auto
"
);
}
});
app/views/notify/new_issue_email.html.haml
View file @
02f3c7eb
...
...
@@ -5,11 +5,3 @@
%p
Assignee:
%span
=
@issue
.
assignee_name
:javascript
document
.
addEventListener
(
"
DOMContentLoaded
"
,
function
(
event
)
{
var
elements
=
document
.
getElementsByTagName
(
"
*
"
);
for
(
var
i
=
0
;
i
<
elements
.
length
;
++
i
)
{
elements
[
i
].
setAttribute
(
"
dir
"
,
"
auto
"
);
}
});
app/views/notify/new_merge_request_email.html.haml
View file @
02f3c7eb
...
...
@@ -10,11 +10,3 @@
-
if
@merge_request
.
description
=
markdown
(
@merge_request
.
description
)
:javascript
document
.
addEventListener
(
"
DOMContentLoaded
"
,
function
(
event
)
{
var
elements
=
document
.
getElementsByTagName
(
"
*
"
);
for
(
var
i
=
0
;
i
<
elements
.
length
;
++
i
)
{
elements
[
i
].
setAttribute
(
"
dir
"
,
"
auto
"
);
}
});
app/views/notify/repository_push_email.html.haml
View file @
02f3c7eb
...
...
@@ -26,11 +26,3 @@
-
if
@compare
.
timeout
%h5
Huge diff. To prevent performance issues changes are hidden
:javascript
document
.
addEventListener
(
"
DOMContentLoaded
"
,
function
(
event
)
{
var
elements
=
document
.
getElementsByTagName
(
"
*
"
);
for
(
var
i
=
0
;
i
<
elements
.
length
;
++
i
)
{
elements
[
i
].
setAttribute
(
"
dir
"
,
"
auto
"
);
}
});
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