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
747130b1
Commit
747130b1
authored
Feb 22, 2022
by
Jacques
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve accessibility on empty project page
Improved accessibility by removing fieldsets Changelog: changed
parent
d2f1a542
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
42 deletions
+38
-42
app/views/projects/empty.html.haml
app/views/projects/empty.html.haml
+38
-42
No files found.
app/views/projects/empty.html.haml
View file @
747130b1
...
...
@@ -31,51 +31,47 @@
%p
=
_
(
'You can also upload existing files from your computer using the instructions below.'
)
.git-empty.js-git-empty
%fieldset
%h5
=
_
(
'Git global setup'
)
%pre
.bg-light
:preserve
git config --global user.name "
#{
h
git_user_name
}
"
git config --global user.email "
#{
h
git_user_email
}
"
%h5
=
_
(
'Git global setup'
)
%pre
.bg-light
:preserve
git config --global user.name "
#{
h
git_user_name
}
"
git config --global user.email "
#{
h
git_user_email
}
"
%fieldset
%h5
=
_
(
'Create a new repository'
)
%pre
.bg-light
:preserve
git clone
#{
content_tag
(
:span
,
default_url_to_repo
,
class:
'js-clone'
)
}
cd
#{
h
@project
.
path
}
git switch -c
#{
h
default_branch_name
}
touch README.md
git add README.md
git commit -m "add README"
-
if
@project
.
can_current_user_push_to_default_branch?
%span
>
<
git
push
-u
origin
#{
h
default_branch_name
}
%h5
=
_
(
'Create a new repository'
)
%pre
.bg-light
:preserve
git clone
#{
content_tag
(
:span
,
default_url_to_repo
,
class:
'js-clone'
)
}
cd
#{
h
@project
.
path
}
git switch -c
#{
h
default_branch_name
}
touch README.md
git add README.md
git commit -m "add README"
-
if
@project
.
can_current_user_push_to_default_branch?
%span
>
<
git
push
-u
origin
#{
h
default_branch_name
}
%fieldset
%h5
=
_
(
'Push an existing folder'
)
%pre
.bg-light
:preserve
cd existing_folder
git init --initial-branch=
#{
h
default_branch_name
}
git remote add origin
#{
content_tag
(
:span
,
default_url_to_repo
,
class:
'js-clone'
)
}
git add .
git commit -m "Initial commit"
-
if
@project
.
can_current_user_push_to_default_branch?
%span><
git
push
-u
origin
#{
h
default_branch_name
}
%h5
=
_
(
'Push an existing folder'
)
%pre
.bg-light
:preserve
cd existing_folder
git init --initial-branch=
#{
h
default_branch_name
}
git remote add origin
#{
content_tag
(
:span
,
default_url_to_repo
,
class:
'js-clone'
)
}
git add .
git commit -m "Initial commit"
-
if
@project
.
can_current_user_push_to_default_branch?
%span><
git
push
-u
origin
#{
h
default_branch_name
}
%fieldset
%h5
=
_
(
'Push an existing Git repository'
)
%pre
.bg-light
:preserve
cd existing_repo
git remote rename origin old-origin
git remote add origin
#{
content_tag
(
:span
,
default_url_to_repo
,
class:
'js-clone'
)
}
-
if
@project
.
can_current_user_push_to_default_branch?
%span><
git
push
-u
origin
--all
git
push
-u
origin
--tags
%h5
=
_
(
'Push an existing Git repository'
)
%pre
.bg-light
:preserve
cd existing_repo
git remote rename origin old-origin
git remote add origin
#{
content_tag
(
:span
,
default_url_to_repo
,
class:
'js-clone'
)
}
-
if
@project
.
can_current_user_push_to_default_branch?
%span><
git
push
-u
origin
--all
git
push
-u
origin
--tags
-
if
@project
.
upload_anchor_data
.
present?
=
render
'projects/blob/upload'
,
title:
_
(
'Upload New File'
),
placeholder:
_
(
'Upload New File'
),
button_title:
_
(
'Upload file'
),
form_path:
project_create_blob_path
(
@project
,
default_branch_name
),
ref:
default_branch_name
,
method: :post
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