2012-03-30 15:54:30 +01:00
|
|
|
-set_meta_tags :title => title_object(@project)
|
2012-05-02 10:18:07 +01:00
|
|
|
= render 'submenu'
|
|
|
|
= render 'repo_block', :project => @project
|
2012-08-03 14:15:29 +01:00
|
|
|
= render 'about_block', :project => @project
|
2012-03-01 22:23:53 +00:00
|
|
|
|
|
|
|
|
2012-08-03 14:15:29 +01:00
|
|
|
- if @project.parent_id.present? || @project.srpm.exists?
|
|
|
|
|
|
|
|
.both
|
|
|
|
#repo-wrapper
|
2012-03-01 22:23:53 +00:00
|
|
|
|
|
|
|
%h3= t("layout.projects.files_in_project")
|
|
|
|
.files
|
2012-05-02 10:18:07 +01:00
|
|
|
.l= render 'whereami'
|
2012-03-01 22:23:53 +00:00
|
|
|
.both
|
2012-08-03 14:15:29 +01:00
|
|
|
%table#myTable.tablesorter.project{:cellpadding => "0", :cellspacing => "0"}
|
|
|
|
%thead
|
|
|
|
%tr
|
|
|
|
%th.th1= t("layout.projects.filename")
|
|
|
|
%th.th2= t("layout.projects.age")
|
|
|
|
%th.th3= t("layout.projects.message")
|
|
|
|
%th.th4= t("layout.projects.author")
|
|
|
|
%tbody
|
|
|
|
%tr
|
|
|
|
%td.centered{:colspan => 4}
|
|
|
|
%h3= I18n.t("layout.git.repositories.empty")
|
|
|
|
|
|
|
|
- else
|
|
|
|
- if current_user
|
|
|
|
%h3= t("layout.projects.git_global_setup")
|
|
|
|
%p
|
|
|
|
%code
|
2012-09-13 21:46:56 +01:00
|
|
|
= "git config --global user.name '#{current_user.fullname}'"
|
2012-08-03 14:15:29 +01:00
|
|
|
%br/
|
|
|
|
= "git config --global user.email #{current_user.email}"
|
|
|
|
%br/
|
|
|
|
git config --global http.postBuffer 524288000
|
|
|
|
|
|
|
|
%h3= t("layout.projects.create_repository")
|
|
|
|
%p
|
|
|
|
%code
|
2013-03-07 08:06:34 +00:00
|
|
|
= "git clone #{git_repo_url(@project.name_with_owner)}"
|
2012-08-03 14:15:29 +01:00
|
|
|
%br/
|
|
|
|
= "cd #{@project.name}"
|
|
|
|
%br/
|
|
|
|
%br/
|
|
|
|
%p= t("layout.projects.move_files_to_folder")
|
|
|
|
%br/
|
|
|
|
%code
|
|
|
|
git add .
|
|
|
|
%br/
|
|
|
|
git commit -m 'description message'
|
|
|
|
%br/
|
|
|
|
git push -u origin master
|
|
|
|
|
|
|
|
%h3= t("layout.projects.existing_git_repo")
|
|
|
|
%p
|
|
|
|
%code
|
|
|
|
cd existing_git_repo
|
|
|
|
%br/
|
2013-03-07 08:06:34 +00:00
|
|
|
= "git remote add origin #{git_repo_url(@project.name_with_owner)}"
|
2012-08-03 14:15:29 +01:00
|
|
|
%br/
|
|
|
|
git push -u origin master
|
2012-03-01 22:23:53 +00:00
|
|
|
|