BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
704f4683
Commit
704f4683
authored
Mar 10, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replaced hidden div for textarea off-the screen
Element with the content being copied cant be hidden so instead i\'ve moved it off the screen
parent
a0c4f3df
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
snippets.scss
app/assets/stylesheets/pages/snippets.scss
+8
-0
_blob.html.haml
app/views/shared/snippets/_blob.html.haml
+1
-1
No files found.
app/assets/stylesheets/pages/snippets.scss
View file @
704f4683
...
...
@@ -28,3 +28,11 @@
border
:
1px
solid
;
line-height
:
32px
;
}
.markdown-snippet-copy
{
position
:
fixed
;
top
:
-10px
;
left
:
-10px
;
max-height
:
0
;
max-width
:
0
;
}
app/views/shared/snippets/_blob.html.haml
View file @
704f4683
-
unless
@snippet
.
content
.
empty?
-
if
markup?
(
@snippet
.
file_name
)
.hidden
.blob-content
{
data:
{
blob_id:
@snippet
.
id
}}
%textarea
.markdown-snippet-copy
.blob-content
{
data:
{
blob_id:
@snippet
.
id
}}
=
@snippet
.
data
.file-content.wiki
=
render_markup
(
@snippet
.
file_name
,
@snippet
.
data
)
...
...
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