project admin area - show project name with namespace

This commit is contained in:
Dmitriy Zaporozhets 2012-11-25 18:52:12 +02:00
parent ae282f6326
commit 1d857aae17
3 changed files with 14 additions and 7 deletions

View file

@ -4,14 +4,14 @@
= link_to 'New Project', new_project_path, class: "btn small right"
%br
= form_tag admin_projects_path, method: :get, class: 'form-inline' do
= select_tag :namespace_id, namespaces_options(params[:namespace_id], :all), class: "chosen xlarge", include_blank: true
= select_tag :namespace_id, namespaces_options(params[:namespace_id], :all), class: "chosen xlarge", prompt: "Project namespace"
= text_field_tag :name, params[:name], class: "xlarge"
= submit_tag "Search", class: "btn submit primary"
%table
%thead
%th Name
%th Project
%th Path
%th Team Members
%th Last Commit
%th Edit
@ -20,10 +20,7 @@
- @projects.each do |project|
%tr
%td
- if project.namespace
= link_to project.namespace.human_name, [:admin, project]
→
= link_to project.name, [:admin, project]
= link_to project.name_with_namespace, [:admin, project]
%td
%span.monospace= project.path_with_namespace + ".git"
%td= project.users_projects.count