2011-03-31 02:15:17 +01:00
|
|
|
.block
|
|
|
|
.secondary-navigation
|
|
|
|
%ul.wat-cf
|
|
|
|
%li.first= link_to t("layout.repositories.list"), platform_path(@platform) + "#repositories"
|
|
|
|
%li= link_to t("layout.repositories.new"), new_platform_repository_path(@platform)
|
|
|
|
%li.active= link_to t("layout.repositories.show"), platform_repository_path(@platform, @repository)
|
|
|
|
.content
|
|
|
|
.inner
|
|
|
|
%p
|
|
|
|
%b
|
|
|
|
= t("activerecord.attributes.repository.name")
|
|
|
|
\:
|
|
|
|
= @repository.name
|
|
|
|
%p
|
|
|
|
%b
|
|
|
|
= t("activerecord.attributes.repository.unixname")
|
|
|
|
\:
|
|
|
|
= @repository.unixname
|
|
|
|
%p
|
|
|
|
%b
|
|
|
|
= t("activerecord.attributes.repository.platform")
|
|
|
|
\:
|
2011-03-31 12:41:58 +01:00
|
|
|
= link_to @repository.platform.name, platform_path(@platform)
|
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"), platform_repository_path(@platform, @repository), :method => "delete", :class => "button", :confirm => t("layout.repositories.confirm_delete")
|
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
|
|
|
|
%li.first.active= link_to t("layout.projects.list"), platform_repository_path(@platform, @repository) + "#projects"
|
2011-10-17 15:20:35 +01:00
|
|
|
%li= link_to t("layout.projects.new"), new_project_path(@platform, @repository)
|
2011-03-31 02:15:17 +01:00
|
|
|
.content
|
|
|
|
%h2.title
|
|
|
|
= t("layout.projects.list_header")
|
|
|
|
.inner
|
2011-04-28 12:01:58 +01:00
|
|
|
= form_tag platform_repository_path(@platform, @repository), :method => :get do
|
|
|
|
.group
|
|
|
|
= label_tag :query, t("layout.search_by_name"), :class => :label
|
|
|
|
= text_field_tag :query
|
|
|
|
%button.search{:type => "submit"}
|
|
|
|
= t("layout.search")
|
2011-03-31 02:15:17 +01:00
|
|
|
%table.table
|
|
|
|
%tr
|
|
|
|
%th.first= t("activerecord.attributes.project.name")
|
|
|
|
%th.last
|
|
|
|
- @projects.each do |project|
|
|
|
|
%tr{:class => cycle("odd", "even")}
|
|
|
|
%td
|
|
|
|
= link_to project.name, platform_repository_project_path(@platform, @repository, project)
|
|
|
|
%td.last
|
|
|
|
#{link_to t("layout.show"), platform_repository_project_path(@platform, @repository, project)} | #{link_to t("layout.delete"), platform_repository_project_path(@platform, @repository, project), :method => :delete, :confirm => t("layout.projects.confirm_delete")}
|
|
|
|
.actions-bar.wat-cf
|
|
|
|
.actions
|
2011-04-28 08:36:58 +01:00
|
|
|
= will_paginate @projects
|
2011-04-28 08:33:03 +01:00
|
|
|
|
2011-03-31 12:41:58 +01:00
|
|
|
- content_for :sidebar, render(:partial => 'sidebar')
|