debian-mirror-gitlab/app/views/projects/empty.html.haml

53 lines
1.6 KiB
Text
Raw Normal View History

2015-04-26 12:48:37 +05:30
- if current_user && can?(current_user, :download_code, @project)
= render 'shared/no_ssh'
= render 'shared/no_password'
2014-09-02 18:07:02 +05:30
= render "home_panel"
2015-09-25 12:07:36 +05:30
.gray-content-block.center
2015-09-11 14:41:01 +05:30
%h3.page-title
2015-04-26 12:48:37 +05:30
The repository for this project is empty
2015-09-11 14:41:01 +05:30
%p
If you already have files you can push them using command line instructions below.
%br
Otherwise you can start with
= link_to "adding README", new_readme_path, class: 'underlined-link'
file to this project.
2015-04-26 12:48:37 +05:30
2015-09-11 14:41:01 +05:30
.prepend-top-20
%h3.page-title
Command line instructions
2014-09-02 18:07:02 +05:30
%div.git-empty
%fieldset
2015-09-11 14:41:01 +05:30
%h5 Git global setup
%pre.light-well
2014-09-02 18:07:02 +05:30
:preserve
2015-09-11 14:41:01 +05:30
git config --global user.name "#{h git_user_name}"
git config --global user.email "#{h git_user_email}"
2014-09-02 18:07:02 +05:30
%fieldset
2015-09-11 14:41:01 +05:30
%h5 Create a new repository
%pre.light-well
2014-09-02 18:07:02 +05:30
:preserve
2015-09-11 14:41:01 +05:30
git clone #{ content_tag(:span, default_url_to_repo, class: 'clone')}
cd #{h @project.path}
2015-04-26 12:48:37 +05:30
touch README.md
git add README.md
2015-09-11 14:41:01 +05:30
git commit -m "add README"
2014-09-02 18:07:02 +05:30
git push -u origin master
%fieldset
2015-09-11 14:41:01 +05:30
%h5 Existing folder or Git repository
%pre.light-well
2014-09-02 18:07:02 +05:30
:preserve
2015-09-11 14:41:01 +05:30
cd existing_folder
git init
2014-09-02 18:07:02 +05:30
git remote add origin #{ content_tag(:span, default_url_to_repo, class: 'clone')}
2015-09-11 14:41:01 +05:30
git add .
git commit
2014-09-02 18:07:02 +05:30
git push -u origin master
- if can? current_user, :remove_project, @project
.prepend-top-20
2015-04-26 12:48:37 +05:30
= link_to 'Remove project', [@project.namespace.becomes(Namespace), @project], data: { confirm: remove_project_message(@project)}, method: :delete, class: "btn btn-remove pull-right"