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
Léo-Paul Géneau
gitlab-ce
Commits
70e59035
Commit
70e59035
authored
Jan 19, 2016
by
Jacob Schatz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix project find url so branch ref is not nil
Also adds autocomplete="off" to find input.
parent
47846958
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
app/views/layouts/header/_default.html.haml
app/views/layouts/header/_default.html.haml
+6
-2
app/views/projects/find_file/show.html.haml
app/views/projects/find_file/show.html.haml
+1
-1
No files found.
app/views/layouts/header/_default.html.haml
View file @
70e59035
...
...
@@ -37,6 +37,10 @@
%h1
.title
=
title
=
render
'shared/outdated_browser'
-
if
@project
-
if
@project
&&
!
@project
.
empty_repo?
&&
@ref
:javascript
var
findFileURL
=
'
#{
namespace_project_find_file_path
(
@project
.
namespace
,
@project
,
@ref
||
@project
.
repository
.
root_ref
)
}
'
;
\ No newline at end of file
var
findFileURL
=
'
#{
namespace_project_find_file_path
(
@project
.
namespace
,
@project
,
@ref
)
}
'
;
-
elsif
@project
&&
!
@project
.
empty_repo?
:javascript
var
findFileURL
=
'
#{
namespace_project_find_file_path
(
@project
.
namespace
,
@project
,
@project
.
repository
.
root_ref
)
}
'
;
\ No newline at end of file
app/views/projects/find_file/show.html.haml
View file @
70e59035
...
...
@@ -10,7 +10,7 @@
=
link_to
namespace_project_tree_path
(
@project
.
namespace
,
@project
,
@ref
)
do
=
@project
.
path
%li
.file-finder
%input
#file_find
.form-control.file-finder-input
{
type:
"text"
,
placeholder:
'Find by path'
}
%input
#file_find
.form-control.file-finder-input
{
type:
"text"
,
placeholder:
'Find by path'
,
autocomplete:
'off'
}
%div
.tree-content-holder
.table-holder
...
...
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