gitlabhq/app/views/projects/show.html.haml
Dmitriy Zaporozhets d6b051c5be get rid of sidebar
2012-03-03 13:03:03 +02:00

29 lines
1 KiB
Plaintext

= render "project_head"
%h3
= @project.name
%span.right
- if can? current_user, :download_code, @project
= link_to "Download", archive_project_repository_path(@project), :class => "btn small padded"
- if @project.merge_requests_enabled && can?(current_user, :write_merge_request, @project)
= link_to new_project_merge_request_path(@project), :title => "New Merge Request", :class => "btn small padded" do
Merge Request
- if @project.issues_enabled && can?(current_user, :write_issue, @project)
= link_to new_project_issue_path(@project), :title => "New Issue", :class => "btn small" do
Issue
.back_link
= link_to projects_path do
← To projects list
%br
.alert-message.block-message.warning
.input
.input-prepend
%span.add-on git clone
= text_field_tag :project_clone, @project.url_to_repo, :class => "xlarge one_click_select git_clone_url"
= simple_format @project.description
- unless @events.blank?
%h5.cgray Recent Activity
.content_list= render @events