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

53 lines
1.9 KiB
Plaintext
Raw Normal View History

2011-03-31 02:56:20 +01:00
.block
.secondary-navigation
%ul.wat-cf
2011-10-17 15:21:29 +01:00
%li.first= link_to t("layout.projects.list"), projects_path
%li= link_to t("layout.projects.new"), new_project_path
%li.active= link_to t("layout.projects.show"), project_path(@project)
%li= link_to t("layout.git.repositories.source"), project_repo_path(@project)
%li= link_to t("layout.projects.build"), build_project_path(@project)
2011-03-31 02:56:20 +01:00
.content
.inner
%p
%b
= t("activerecord.attributes.project.name")
\:
= @project.name
%p
%b
= t("activerecord.attributes.project.unixname")
\:
= @project.unixname
%p
%b
2011-10-17 15:21:29 +01:00
= t("activerecord.attributes.project.owner")
2011-03-31 02:56:20 +01:00
\:
2011-10-17 17:07:53 +01:00
= link_to @project.owner.try(:name), url_for(@project.owner)
2011-10-17 15:21:29 +01:00
%p
%b
= t("activerecord.attributes.project.visibility")
\:
= @project.visibility
%p
%b
= t("activerecord.attributes.project.repository")
\:
= git_repo_url @project.git_repo_name
2011-03-31 02:56:20 +01:00
.wat-cf
= link_to image_tag("web-app-theme/icons/application_edit.png", :alt => t("layout.edit")) + " " + t("layout.edit"), edit_project_path(@project), :class => "button" if can? :update, @project
= link_to image_tag("web-app-theme/icons/cross.png", :alt => t("layout.delete")) + " " + t("layout.delete"), project_path(@project), :method => "delete", :class => "button", :confirm => t("layout.projects.confirm_delete") if can? :destroy, @project
2011-03-31 02:56:20 +01:00
2011-04-07 14:20:21 +01:00
%a{ :name => "build_lists"}
.block
.secondary-navigation
%ul.wat-cf
2011-10-17 15:21:29 +01:00
%li.first.active= link_to t("layout.build_lists.current"), project_path(@project) + "#build_lists"
%li= link_to t("layout.build_lists.all"), project_build_lists_path(@project)
2011-04-07 14:20:21 +01:00
.content
= render :partial => "build_lists/build_lists", :object => @current_build_lists
- content_for :sidebar, render('sidebar')