rosa-build/app/views/projects/pull_requests/show.html.haml

24 lines
1.0 KiB
Plaintext
Raw Normal View History

2012-07-16 17:27:41 +01:00
-ar = 'activerecord.attributes.pull_requests'
2012-10-27 19:04:28 +01:00
-set_meta_tags :title => [title_object(@project), t('.title', :name => @pull.title.truncate(40), :user => @pull.user.try(:uname))]
2012-05-17 17:47:36 +01:00
= render :partial => 'submenu'
2013-07-12 15:21:46 +01:00
2013-07-23 13:29:35 +01:00
%div{'ng-controller' => 'PullRequestController', 'ng-init' => "init('#{@project.owner.uname}', '#{@project.name}', '#{@pull.serial_id}')"}
2013-07-12 15:21:46 +01:00
%h3.bpadding10
- PullRequest::STATUSES.each do |status|
2013-07-26 19:02:00 +01:00
= pull_status_label status, {'ng-show' => "pull.status == '#{status}'", :style => 'display: none;'}
2013-07-12 15:21:46 +01:00
= pull_header @pull
#repo-wrapper
=render 'nav_tabs'
.tab-content.pull_diff_fix
#discussion.tab-pane.active
=render 'projects/issues/header'
=render 'activity'
%br
=render "projects/comments/add", :project => @project, :commentable => @issue if current_user
.pull_status
=render 'status'
=render 'diff_commits_tabs' unless @pull.already?
=hidden_field_tag :preview_url, project_md_preview_path(@project)
= render "projects/comments/markdown_help"