rosa-build/app/views/projects/_repo_block.html.haml

24 lines
905 B
Plaintext
Raw Normal View History

.description-top
= text_field_tag :url, git_repo_url(project.git_repo_name), :class => 'name', :spellcheck => 'false', :readonly => true
.git_help ?
.role= can?(:write, project) ? t("layout.read_write_access") : t("layout.read_access")
= render :partial => 'projects/branch_select', :locals => {:project => project}
#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"
.both
2012-03-12 14:46:11 +00:00
:javascript
$(document).ready(function() {
$('#url').live('click', function() {
$(this).select();
});
});