gitlab-org--gitlab-foss/app/views/projects/show.html.haml

38 lines
1.5 KiB
Plaintext
Raw Normal View History

2011-12-30 06:54:42 +00:00
= render "project_head"
2012-04-10 05:51:08 +00:00
2012-04-10 18:39:04 +00:00
.entry
2012-04-10 05:51:08 +00:00
.row
.span7
.form-horizontal
.input-prepend.project_clone_holder
2012-04-10 05:51:08 +00:00
%span.add-on git clone
= link_to "SSH", "#", :class => "btn small active", :"data-clone" => @project.ssh_url_to_repo
= link_to "HTTP", "#", :class => "btn small", :"data-clone" => @project.http_url_to_repo
2012-04-10 05:51:08 +00:00
= text_field_tag :project_clone, @project.url_to_repo, :class => "one_click_select span5"
.span4.right
.right
- if can? current_user, :download_code, @project
2012-07-05 06:35:23 +00:00
= link_to archive_project_repository_path(@project), :class => "btn small grouped" do
%i.icon-download-alt
Download
- if @project.merge_requests_enabled && can?(current_user, :write_merge_request, @project)
2012-07-05 06:35:23 +00:00
= link_to new_project_merge_request_path(@project), :title => "New Merge Request", :class => "btn small grouped" do
Merge Request
- if @project.issues_enabled && can?(current_user, :write_issue, @project)
2012-07-05 06:35:23 +00:00
= link_to new_project_issue_path(@project), :title => "New Issue", :class => "btn small grouped" do
Issue
2012-06-12 14:43:16 +00:00
= render "events/event_last_push", :event => @last_push
2012-06-21 15:41:22 +00:00
.content_list= render @events
:javascript
$(function(){
var link_sel = ".project_clone_holder a";
$(link_sel).bind("click", function() {
$(link_sel).removeClass("active");
$(this).addClass("active");
$("#project_clone").val($(this).attr("data-clone"));
})
})