Commit 747130b1 authored by Jacques's avatar Jacques

Improve accessibility on empty project page

Improved accessibility by removing  fieldsets

Changelog: changed
parent d2f1a542
...@@ -31,51 +31,47 @@ ...@@ -31,51 +31,47 @@
%p %p
= _('You can also upload existing files from your computer using the instructions below.') = _('You can also upload existing files from your computer using the instructions below.')
.git-empty.js-git-empty .git-empty.js-git-empty
%fieldset %h5= _('Git global setup')
%h5= _('Git global setup') %pre.bg-light
%pre.bg-light :preserve
:preserve git config --global user.name "#{h git_user_name}"
git config --global user.name "#{h git_user_name}" git config --global user.email "#{h git_user_email}"
git config --global user.email "#{h git_user_email}"
%fieldset %h5= _('Create a new repository')
%h5= _('Create a new repository') %pre.bg-light
%pre.bg-light :preserve
:preserve git clone #{ content_tag(:span, default_url_to_repo, class: 'js-clone')}
git clone #{ content_tag(:span, default_url_to_repo, class: 'js-clone')} cd #{h @project.path}
cd #{h @project.path} git switch -c #{h default_branch_name}
git switch -c #{h default_branch_name} touch README.md
touch README.md git add README.md
git add README.md git commit -m "add README"
git commit -m "add README" - if @project.can_current_user_push_to_default_branch?
- if @project.can_current_user_push_to_default_branch? %span><
%span>< git push -u origin #{h default_branch_name }
git push -u origin #{h default_branch_name }
%fieldset %h5= _('Push an existing folder')
%h5= _('Push an existing folder') %pre.bg-light
%pre.bg-light :preserve
:preserve cd existing_folder
cd existing_folder git init --initial-branch=#{h default_branch_name}
git init --initial-branch=#{h default_branch_name} git remote add origin #{ content_tag(:span, default_url_to_repo, class: 'js-clone')}
git remote add origin #{ content_tag(:span, default_url_to_repo, class: 'js-clone')} git add .
git add . git commit -m "Initial commit"
git commit -m "Initial commit" - if @project.can_current_user_push_to_default_branch?
- if @project.can_current_user_push_to_default_branch? %span><
%span>< git push -u origin #{h default_branch_name }
git push -u origin #{h default_branch_name }
%fieldset %h5= _('Push an existing Git repository')
%h5= _('Push an existing Git repository') %pre.bg-light
%pre.bg-light :preserve
:preserve cd existing_repo
cd existing_repo git remote rename origin old-origin
git remote rename origin old-origin git remote add origin #{ content_tag(:span, default_url_to_repo, class: 'js-clone')}
git remote add origin #{ content_tag(:span, default_url_to_repo, class: 'js-clone')} - if @project.can_current_user_push_to_default_branch?
- if @project.can_current_user_push_to_default_branch? %span><
%span>< git push -u origin --all
git push -u origin --all git push -u origin --tags
git push -u origin --tags
- if @project.upload_anchor_data.present? - 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 = 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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment