2012-02-21 15:41:16 +00:00
|
|
|
.description-top
|
2012-04-13 12:24:24 +01:00
|
|
|
%ul.nav.zip
|
|
|
|
%li#menu-archive.dropdown
|
|
|
|
%a.dropdown-toggle{"data-toggle" => "dropdown", :href => "#menu-archive"}
|
|
|
|
ZIP
|
|
|
|
%b.caret
|
|
|
|
%ul.dropdown-menu
|
|
|
|
%li=link_to "tar.gz", archive_path(project.id, 'tar', @treeish)
|
|
|
|
%li=link_to "zip", archive_path(project.id, 'zip', @treeish)
|
2012-04-11 19:29:08 +01:00
|
|
|
|
2012-03-21 19:55:14 +00:00
|
|
|
= text_field_tag :url, git_repo_url(project.git_repo_name), :class => 'name', :spellcheck => 'false', :readonly => true
|
2012-04-05 08:26:03 +01:00
|
|
|
.git_help ?
|
2012-03-31 11:27:20 +01:00
|
|
|
.role= can?(:write, project) ? t("layout.read_write_access") : t("layout.read_access")
|
2012-02-27 17:40:46 +00:00
|
|
|
= render :partial => 'projects/branch_select', :locals => {:project => project}
|
2012-04-05 08:26:03 +01:00
|
|
|
#git_help_data
|
2012-04-05 21:21:19 +01:00
|
|
|
%p= t("layout.projects.git_help.cloning") + ":"
|
|
|
|
%p
|
|
|
|
%p~ "git clone #{git_repo_url(project.git_repo_name)} #{project.name}"
|
|
|
|
%p~ "cd #{project.name}"
|
|
|
|
%p
|
|
|
|
%p= t("layout.projects.git_help.remote") + ":"
|
|
|
|
%p
|
|
|
|
%p~ "git remote add #{project.name} #{git_repo_url(project.git_repo_name)}"
|
|
|
|
%p~ "git fetch #{project.name}"
|
|
|
|
%p~ "git checkout -b my-local-tracking-branch #{project.name}/master_or_other_branch"
|
2012-02-27 17:40:46 +00:00
|
|
|
.both
|
2012-03-12 14:46:11 +00:00
|
|
|
:javascript
|
|
|
|
$(document).ready(function() {
|
|
|
|
$('#url').live('click', function() {
|
|
|
|
$(this).select();
|
|
|
|
});
|
2012-03-31 11:27:20 +01:00
|
|
|
});
|