Commit 436b352f authored by Kushal Pandya's avatar Kushal Pandya

Merge branch '246904-drop-limit-container-width-from-projects' into 'master'

Drop one of duplicated classname from Projects

Closes #246904

See merge request gitlab-org/gitlab!41831
parents e23a6483 2b9b4db5
...@@ -5,72 +5,71 @@ ...@@ -5,72 +5,71 @@
= render partial: 'flash_messages', locals: { project: @project } = render partial: 'flash_messages', locals: { project: @project }
%div{ class: [("limit-container-width" unless fluid_layout)] } = render "home_panel"
= render "home_panel"
%h4.gl-mt-0.gl-mb-3 %h4.gl-mt-0.gl-mb-3
= _('The repository for this project is empty') = _('The repository for this project is empty')
- if @project.can_current_user_push_code? - if @project.can_current_user_push_code?
%p.gl-mb-0 %p.gl-mb-0
= _('You can get started by cloning the repository or start adding files to it with one of the following options.') = _('You can get started by cloning the repository or start adding files to it with one of the following options.')
.project-buttons.qa-quick-actions .project-buttons.qa-quick-actions
.project-clone-holder.d-block.d-md-none.mt-2.mr-2 .project-clone-holder.d-block.d-md-none.mt-2.mr-2
= render "shared/mobile_clone_panel" = render "shared/mobile_clone_panel"
.project-clone-holder.d-none.d-md-inline-block.mt-2.mr-2.float-left .project-clone-holder.d-none.d-md-inline-block.mt-2.mr-2.float-left
= render "projects/buttons/clone" = render "projects/buttons/clone"
= render 'stat_anchor_list', anchors: @project.empty_repo_statistics_buttons = render 'stat_anchor_list', anchors: @project.empty_repo_statistics_buttons
- if can?(current_user, :push_code, @project) - if can?(current_user, :push_code, @project)
.empty-wrapper.gl-mt-7 .empty-wrapper.gl-mt-7
%h3#repo-command-line-instructions.page-title-empty %h3#repo-command-line-instructions.page-title-empty
= _('Command line instructions') = _('Command line instructions')
%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 %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 %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}
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 #{ default_branch_name } git push -u origin #{ default_branch_name }
%fieldset %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 git init
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 #{ default_branch_name } git push -u origin #{ default_branch_name }
%fieldset %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
---
title: Drop one of duplicated classname from Projects
merge_request: 41831
author: Takuya Noguchi
type: performance
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