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

50 lines
1.8 KiB
Plaintext
Raw Normal View History

2011-03-31 02:15:17 +01:00
.block
.secondary-navigation
%ul.wat-cf
2011-10-19 14:16:29 +01:00
%li.first= link_to t("layout.repositories.list"), @repositories_path + "#repositories"
%li= link_to t("layout.repositories.new"), @new_repository_path
%li.active= link_to t("layout.repositories.show"), repository_path(@repository)
2011-03-31 02:15:17 +01:00
.content
.inner
%p
%b
= t("activerecord.attributes.repository.name")
\:
= @repository.name
%p
%b
= t("activerecord.attributes.repository.description")
2011-03-31 02:15:17 +01:00
\:
= @repository.description
2011-10-19 14:16:29 +01:00
%p
%b
= t("activerecord.attributes.repository.platform")
\:
= link_to @repository.platform.description, url_for(@repository.platform)
2011-10-19 14:16:29 +01:00
%p
%b
= t("activerecord.attributes.repository.owner")
\:
= link_to @repository.owner.try(:name), url_for(@repository.owner)
2011-03-31 02:15:17 +01:00
.wat-cf
= link_to image_tag("web-app-theme/icons/cross.png", :alt => t("layout.delete")) + " " + t("layout.delete"), @repository_path, :method => "delete", :class => "button", :confirm => t("layout.repositories.confirm_delete") if can? :destroy, @repository
2011-03-11 16:30:02 +00:00
2011-03-31 02:15:17 +01:00
%a{ :name => "projects" }
.block
.secondary-navigation
%ul.wat-cf
2011-10-19 14:16:29 +01:00
%li.first.active= link_to t("layout.projects.list"), repository_path(@repository) + "#projects"
%li= link_to t("layout.projects.add"), url_for(:controller => :repositories, :action => :add_project)
2011-03-31 02:15:17 +01:00
.content
%h2.title
= t("layout.projects.list_header")
.inner
2011-10-19 14:16:29 +01:00
= render :partial => 'shared/search_form'
= render :partial => 'proj_list1', :object => @projects
2011-03-31 02:15:17 +01:00
.actions-bar.wat-cf
.actions
2011-10-19 14:16:29 +01:00
= will_paginate @projects, :param_name => :project_page
2011-04-28 08:33:03 +01:00
2011-10-19 14:16:29 +01:00
-# content_for :sidebar, render(:partial => 'sidebar')