2013-01-27 11:34:27 +01:00
|
|
|
%h3.page_title
|
|
|
|
Projects
|
|
|
|
%span
|
|
|
|
(#{@projects.total_count})
|
|
|
|
- if current_user.can_create_project?
|
2013-01-30 15:40:43 +01:00
|
|
|
%span.pull-right
|
2013-01-29 21:29:21 +01:00
|
|
|
= link_to new_project_path, class: "btn btn-tiny info" do
|
2013-01-27 11:34:27 +01:00
|
|
|
%i.icon-plus
|
|
|
|
New Project
|
|
|
|
|
2013-01-27 11:56:20 +01:00
|
|
|
|
2013-01-27 11:34:27 +01:00
|
|
|
%hr
|
|
|
|
.row
|
|
|
|
.span3
|
|
|
|
%ul.nav.nav-pills.nav-stacked
|
|
|
|
= nav_tab :scope, nil do
|
2013-01-27 11:56:20 +01:00
|
|
|
= link_to "All", projects_dashboard_path
|
2013-01-27 11:34:27 +01:00
|
|
|
= nav_tab :scope, 'personal' do
|
2013-01-27 11:56:20 +01:00
|
|
|
= link_to "Personal", projects_dashboard_path(scope: 'personal')
|
2013-01-27 11:34:27 +01:00
|
|
|
= nav_tab :scope, 'joined' do
|
2013-01-27 11:56:20 +01:00
|
|
|
= link_to "Joined", projects_dashboard_path(scope: 'joined')
|
2013-01-27 11:34:27 +01:00
|
|
|
|
|
|
|
.span9
|
2013-01-27 11:56:20 +01:00
|
|
|
= form_tag projects_dashboard_path, method: 'get' do
|
2013-01-27 11:34:27 +01:00
|
|
|
%fieldset.dashboard-search-filter
|
|
|
|
= hidden_field_tag "scope", params[:scope]
|
2013-03-12 10:33:27 +01:00
|
|
|
= search_field_tag "search", params[:search], { id: 'dashboard_projects_search', placeholder: 'Search', class: 'left input-xxlarge'}
|
2013-01-27 11:34:27 +01:00
|
|
|
= button_tag type: 'submit', class: 'btn' do
|
|
|
|
%i.icon-search
|
|
|
|
|
|
|
|
%ul.well-list
|
|
|
|
- @projects.each do |project|
|
2013-01-27 11:56:20 +01:00
|
|
|
%li.clearfix
|
2013-03-18 18:22:15 +01:00
|
|
|
.clearfix
|
|
|
|
%h5
|
|
|
|
= link_to project_path(project), class: dom_class(project) do
|
|
|
|
- if project.namespace
|
|
|
|
= project.namespace.human_name
|
|
|
|
\/
|
|
|
|
%strong
|
|
|
|
= truncate(project.name, length: 45)
|
|
|
|
.pull-right.light
|
|
|
|
- if project.owner == current_user
|
|
|
|
%i.icon-wrench
|
|
|
|
- tm = project.team.get_tm(current_user.id)
|
|
|
|
- if tm
|
|
|
|
%strong= tm.project_access_human
|
|
|
|
.clearfix
|
|
|
|
.left
|
|
|
|
- if project.description.present?
|
|
|
|
%span.light= project.description
|
|
|
|
|
|
|
|
.pull-right.light
|
|
|
|
%small.light
|
|
|
|
Last activity #{project_last_activity(project)}
|
2013-01-27 11:56:20 +01:00
|
|
|
|
2013-01-27 11:34:27 +01:00
|
|
|
- if @projects.blank?
|
|
|
|
%li
|
|
|
|
%h3.nothing_here_message There are no projects here.
|
2013-03-18 18:22:15 +01:00
|
|
|
.bottom
|
|
|
|
%hr
|
|
|
|
= paginate @projects, theme: "gitlab"
|
2013-01-27 11:34:27 +01:00
|
|
|
|