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
|
2011-11-28 15:41:42 +00:00
|
|
|
= t("activerecord.attributes.repository.description")
|
2011-03-31 02:15:17 +01:00
|
|
|
\:
|
2011-11-28 15:41:42 +00:00
|
|
|
= @repository.description
|
2011-10-19 14:16:29 +01:00
|
|
|
%p
|
|
|
|
%b
|
|
|
|
= t("activerecord.attributes.repository.platform")
|
|
|
|
\:
|
2011-11-28 15:41:42 +00:00
|
|
|
= link_to @repository.platform.description, url_for(@repository.platform)
|
2011-10-19 14:16:29 +01:00
|
|
|
%p
|
|
|
|
%b
|
|
|
|
= t("activerecord.attributes.repository.owner")
|
|
|
|
\:
|
2011-11-29 10:17:05 +00:00
|
|
|
= link_to @repository.owner.try(:name), url_for(@repository.owner)
|
2011-03-31 02:15:17 +01:00
|
|
|
.wat-cf
|
2011-11-24 21:46:19 +00:00
|
|
|
= 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')
|