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
9e1df20a
Commit
9e1df20a
authored
4 years ago
by
Thomas Randolph
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add file mode to the repository browser file rows
parent
c705a228
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
0 deletions
+14
-0
app/assets/javascripts/repository/components/table/index.vue
app/assets/javascripts/repository/components/table/index.vue
+1
-0
app/assets/javascripts/repository/components/table/row.vue
app/assets/javascripts/repository/components/table/row.vue
+6
-0
app/assets/javascripts/vue_shared/components/file_icon.vue
app/assets/javascripts/vue_shared/components/file_icon.vue
+5
-0
app/assets/javascripts/vue_shared/constants.js
app/assets/javascripts/vue_shared/constants.js
+2
-0
No files found.
app/assets/javascripts/repository/components/table/index.vue
View file @
9e1df20a
...
...
@@ -97,6 +97,7 @@ export default {
:path="entry.flatPath"
:type="entry.type"
:url="entry.webUrl"
:mode="entry.mode"
:submodule-tree-url="entry.treeUrl"
:lfs-oid="entry.lfsOid"
:loading-path="loadingPath"
...
...
This diff is collapsed.
Click to expand it.
app/assets/javascripts/repository/components/table/row.vue
View file @
9e1df20a
...
...
@@ -66,6 +66,11 @@ export default {
type
:
String
,
required
:
true
,
},
mode
:
{
type
:
String
,
required
:
false
,
default
:
''
,
},
type
:
{
type
:
String
,
required
:
true
,
...
...
@@ -140,6 +145,7 @@ export default {
>
<file-icon
:file-name=
"fullPath"
:file-mode=
"mode"
:folder=
"isFolder"
:submodule=
"isSubmodule"
:loading=
"path === loadingPath"
...
...
This diff is collapsed.
Click to expand it.
app/assets/javascripts/vue_shared/components/file_icon.vue
View file @
9e1df20a
...
...
@@ -24,6 +24,11 @@ export default {
type
:
String
,
required
:
true
,
},
fileMode
:
{
type
:
Number
,
required
:
false
,
default
:
-
1
},
folder
:
{
type
:
Boolean
,
...
...
This diff is collapsed.
Click to expand it.
app/assets/javascripts/vue_shared/constants.js
View file @
9e1df20a
...
...
@@ -6,6 +6,8 @@ const INTERVALS = {
day
:
'
day
'
,
};
export
const
FILE_SYMLINK_MODE
=
'
120000
'
;
export
const
timeRanges
=
[
{
label
:
__
(
'
30 minutes
'
),
...
...
This diff is collapsed.
Click to expand it.
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