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
Jérome Perrin
gitlab-ce
Commits
3402691d
Commit
3402691d
authored
Jul 18, 2017
by
Jacob Schatz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes previous dir bug.
parent
675864e2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
app/assets/javascripts/repo/repo_helper.js
app/assets/javascripts/repo/repo_helper.js
+1
-0
app/assets/javascripts/repo/repo_prev_directory.js
app/assets/javascripts/repo/repo_prev_directory.js
+1
-1
No files found.
app/assets/javascripts/repo/repo_helper.js
View file @
3402691d
...
...
@@ -16,6 +16,7 @@ const RepoHelper = {
getLanguageForFile
(
file
,
langs
)
{
const
ext
=
`.
${
file
.
name
.
split
(
'
.
'
).
pop
()}
`
;
console
.
log
(
'
ext
'
,
ext
,
'
ext
'
)
let
foundLang
;
if
(
langs
.
some
((
l
)
=>
{
if
(
l
.
extensions
&&
l
.
extensions
.
indexOf
(
ext
)
>
-
1
)
{
...
...
app/assets/javascripts/repo/repo_prev_directory.js
View file @
3402691d
...
...
@@ -2,7 +2,7 @@ const RepoPreviousDirectory = {
template
:
`
<tr>
<td colspan='3'>
<a :href='prevUrl' @click.prevent='linkClicked(prev
u
rl)'>..</a>
<a :href='prevUrl' @click.prevent='linkClicked(prev
U
rl)'>..</a>
</td>
</tr>
`
,
...
...
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