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
6ab8275c
Commit
6ab8275c
authored
Apr 01, 2015
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check symlink mode as a String for file_type_icon_class
See
https://gitlab.com/gitlab-org/gitlab_git/commit/8ae14bb84b94a2ec15f8a639fb82f0f55c77ad69
parent
16a6ea2d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
icons_helper.rb
app/helpers/icons_helper.rb
+1
-1
icons_helper_spec.rb
spec/helpers/icons_helper_spec.rb
+1
-1
No files found.
app/helpers/icons_helper.rb
View file @
6ab8275c
...
...
@@ -40,7 +40,7 @@ module IconsHelper
def
file_type_icon_class
(
type
,
mode
,
name
)
if
type
==
'folder'
icon_class
=
'folder'
elsif
mode
==
0120000
elsif
mode
==
'120000'
icon_class
=
'share'
else
# Guess which icon to choose based on file extension.
...
...
spec/helpers/icons_helper_spec.rb
View file @
6ab8275c
...
...
@@ -7,7 +7,7 @@ describe IconsHelper do
end
it
'returns share class'
do
expect
(
file_type_icon_class
(
'file'
,
0120000
,
'link'
)).
to
eq
'share'
expect
(
file_type_icon_class
(
'file'
,
'120000'
,
'link'
)).
to
eq
'share'
end
it
'returns file-pdf-o class with .pdf'
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