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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
ed0f26c2
Commit
ed0f26c2
authored
Jun 08, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Escapes branch names before appending to dom
parent
d2362e2e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/assets/javascripts/project.js.coffee
app/assets/javascripts/project.js.coffee
+1
-1
features/steps/project/source/browse_files.rb
features/steps/project/source/browse_files.rb
+1
-1
No files found.
app/assets/javascripts/project.js.coffee
View file @
ed0f26c2
...
...
@@ -74,7 +74,7 @@ class @Project
isActiveClass
=
if
ref
is
selected
then
'is-active'
else
''
"<li>
<a href='#' data-ref='
#{
ref
}
' class='
#{
isActiveClass
}
'>
<a href='#' data-ref='
#{
escape
(
ref
)
}
' class='
#{
isActiveClass
}
'>
#{
ref
}
</a>
</li>"
...
...
features/steps/project/source/browse_files.rb
View file @
ed0f26c2
...
...
@@ -306,7 +306,7 @@ class Spinach::Features::ProjectSourceBrowseFiles < Spinach::FeatureSteps
end
step
"I see the ref 'test' has been selected"
do
expect
(
page
).
to
have_selector
'.dropdown-toggle'
,
text:
"'test'"
expect
(
page
).
to
have_selector
'.dropdown-toggle
-text
'
,
text:
"'test'"
end
step
"I visit the 'test' tree"
do
...
...
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