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
27a6aa4f
Commit
27a6aa4f
authored
Jul 17, 2017
by
Bob Van Landuyt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move system-uploads to `-/system`
parent
11f9ac0a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
gitlab_uploader.rb
app/uploaders/gitlab_uploader.rb
+1
-1
bvl-free-system-namespace.yml
changelogs/unreleased/bvl-free-system-namespace.yml
+4
-0
uploads.rb
config/routes/uploads.rb
+2
-2
No files found.
app/uploaders/gitlab_uploader.rb
View file @
27a6aa4f
...
...
@@ -16,7 +16,7 @@ class GitlabUploader < CarrierWave::Uploader::Base
def
self
.
base_dir
return
root_dir
unless
file_storage?
File
.
join
(
root_dir
,
'system'
)
File
.
join
(
root_dir
,
'
-'
,
'
system'
)
end
def
self
.
file_storage?
...
...
changelogs/unreleased/bvl-free-system-namespace.yml
0 → 100644
View file @
27a6aa4f
---
title
:
"
Move
uploads
from
`uploads/system`
to
`uploads/-/system`
to
free
up
`system`
as
a
group
name"
merge_request
:
11713
author
:
config/routes/uploads.rb
View file @
27a6aa4f
scope
path: :uploads
do
# Note attachments and User/Group/Project avatars
get
"system/:model/:mounted_as/:id/:filename"
,
get
"
-/
system/:model/:mounted_as/:id/:filename"
,
to:
"uploads#show"
,
constraints:
{
model:
/note|user|group|project/
,
mounted_as:
/avatar|attachment/
,
filename:
/[^\/]+/
}
...
...
@@ -15,7 +15,7 @@ scope path: :uploads do
constraints:
{
filename:
/[^\/]+/
}
# Appearance
get
"system/:model/:mounted_as/:id/:filename"
,
get
"
-/
system/:model/:mounted_as/:id/:filename"
,
to:
"uploads#show"
,
constraints:
{
model:
/appearance/
,
mounted_as:
/logo|header_logo/
,
filename:
/.+/
}
...
...
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