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

51 lines
1.7 KiB
Plaintext
Raw Normal View History

2011-10-19 14:16:29 +01:00
.block
.secondary-navigation
%ul.wat-cf
%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)
.content
.inner
%p
%b
= t("activerecord.attributes.repository.name")
\:
= @repository.name
%p
%b
= t("activerecord.attributes.repository.description")
2011-10-19 14:16:29 +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")
\:
2011-11-30 16:38:02 +00:00
= link_to @repository.owner.uname, url_for(@repository.owner)
2011-10-19 14:16:29 +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")
%a{ :name => "projects" }
.block
.secondary-navigation
%ul.wat-cf
%li.first= link_to t("layout.projects.list"), repository_path(@repository) + "#projects"
%li.active= link_to t("layout.projects.add"), url_for(:controller => :repositories, :action => :add_project)
.content
%h2.title
= t("layout.projects.list_header")
.inner
-#= render :partial => 'shared/search_form'
2011-10-19 14:16:29 +01:00
= render :partial => 'proj_list', :object => @projects
-#.actions-bar.wat-cf
2011-10-19 14:16:29 +01:00
.actions
= will_paginate @projects, :param_name => :project_page
-# content_for :sidebar, render(:partial => 'sidebar')