2013-12-29 05:58:00 -05:00
|
|
|
%h3.page-title
|
|
|
|
My Projects
|
|
|
|
.pull-right
|
|
|
|
.dropdown.inline
|
|
|
|
%a.dropdown-toggle.btn.btn-small{href: '#', "data-toggle" => "dropdown"}
|
|
|
|
%span.light sort:
|
|
|
|
- if @sort.present?
|
|
|
|
= @sort.humanize
|
|
|
|
- else
|
|
|
|
Name
|
|
|
|
%b.caret
|
|
|
|
%ul.dropdown-menu
|
|
|
|
%li
|
|
|
|
= link_to projects_dashboard_filter_path(sort: nil) do
|
|
|
|
Name
|
|
|
|
= link_to projects_dashboard_filter_path(sort: 'newest') do
|
|
|
|
Newest
|
|
|
|
= link_to projects_dashboard_filter_path(sort: 'oldest') do
|
|
|
|
Oldest
|
|
|
|
= link_to projects_dashboard_filter_path(sort: 'recently_updated') do
|
|
|
|
Recently updated
|
|
|
|
= link_to projects_dashboard_filter_path(sort: 'last_updated') do
|
|
|
|
Last updated
|
2013-07-31 10:53:42 -04:00
|
|
|
%p.light
|
2013-08-15 15:04:09 -04:00
|
|
|
All projects you have access to are listed here. Public projects are not included here unless you are a member
|
2013-07-31 10:53:42 -04:00
|
|
|
%hr
|
2013-01-27 05:34:27 -05:00
|
|
|
.row
|
2013-12-31 05:01:48 -05:00
|
|
|
.col-md-3.col-sm-4
|
2013-01-27 05:34:27 -05:00
|
|
|
%ul.nav.nav-pills.nav-stacked
|
|
|
|
= nav_tab :scope, nil do
|
2013-12-29 05:58:00 -05:00
|
|
|
= link_to projects_dashboard_filter_path(scope: nil) do
|
2013-07-29 15:59:41 -04:00
|
|
|
All
|
|
|
|
%span.pull-right
|
|
|
|
= current_user.authorized_projects.count
|
2013-01-27 05:34:27 -05:00
|
|
|
= nav_tab :scope, 'personal' do
|
2013-12-29 05:58:00 -05:00
|
|
|
= link_to projects_dashboard_filter_path(scope: 'personal') do
|
2013-07-29 15:59:41 -04:00
|
|
|
Personal
|
|
|
|
%span.pull-right
|
|
|
|
= current_user.personal_projects.count
|
2013-01-27 05:34:27 -05:00
|
|
|
= nav_tab :scope, 'joined' do
|
2013-12-29 05:58:00 -05:00
|
|
|
= link_to projects_dashboard_filter_path(scope: 'joined') do
|
2013-07-29 15:59:41 -04:00
|
|
|
Joined
|
|
|
|
%span.pull-right
|
|
|
|
= current_user.authorized_projects.joined(current_user).count
|
2013-06-19 10:48:43 -04:00
|
|
|
= nav_tab :scope, 'owned' do
|
2013-12-29 05:58:00 -05:00
|
|
|
= link_to projects_dashboard_filter_path(scope: 'owned') do
|
2013-07-29 15:59:41 -04:00
|
|
|
Owned
|
|
|
|
%span.pull-right
|
|
|
|
= current_user.owned_projects.count
|
2013-01-27 05:34:27 -05:00
|
|
|
|
2013-12-05 13:26:21 -05:00
|
|
|
%fieldset
|
|
|
|
%legend Visibility
|
|
|
|
%ul.bordered-list.visibility-filter
|
|
|
|
- Gitlab::VisibilityLevel.values.each do |level|
|
|
|
|
%li{ class: (level.to_s == params[:visibility_level]) ? 'active' : 'light' }
|
2013-12-29 05:58:00 -05:00
|
|
|
= link_to projects_dashboard_filter_path(visibility_level: level) do
|
2013-12-05 13:26:21 -05:00
|
|
|
= visibility_level_icon(level)
|
|
|
|
= visibility_level_label(level)
|
2013-08-29 14:45:19 -04:00
|
|
|
|
|
|
|
- if @groups.present?
|
|
|
|
%fieldset
|
|
|
|
%legend Groups
|
|
|
|
%ul.bordered-list
|
|
|
|
- @groups.each do |group|
|
|
|
|
%li{ class: (group.name == params[:group]) ? 'active' : 'light' }
|
2013-12-29 05:58:00 -05:00
|
|
|
= link_to projects_dashboard_filter_path(group: group.name) do
|
2013-08-29 14:45:19 -04:00
|
|
|
%i.icon-folder-close-alt
|
|
|
|
= group.name
|
|
|
|
%small.pull-right
|
|
|
|
= group.projects.count
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-06-19 10:48:43 -04:00
|
|
|
- if @labels.present?
|
2013-08-29 14:45:19 -04:00
|
|
|
%fieldset
|
|
|
|
%legend Labels
|
|
|
|
%ul.bordered-list
|
|
|
|
- @labels.each do |label|
|
|
|
|
%li{ class: (label.name == params[:label]) ? 'active' : 'light' }
|
2013-12-29 05:58:00 -05:00
|
|
|
= link_to projects_dashboard_filter_path(scope: params[:scope], label: label.name) do
|
2013-08-29 14:45:19 -04:00
|
|
|
%i.icon-tag
|
|
|
|
= label.name
|
2013-04-16 06:13:29 -04:00
|
|
|
|
2013-12-31 05:01:48 -05:00
|
|
|
.col-md-9.col-sm-8
|
2013-08-02 06:44:25 -04:00
|
|
|
%ul.bordered-list.my-projects.top-list
|
2013-07-29 15:59:41 -04:00
|
|
|
- @projects.each do |project|
|
2013-11-05 09:41:29 -05:00
|
|
|
%li.my-project-row
|
2013-07-29 15:59:41 -04:00
|
|
|
%h4.project-title
|
2013-12-05 13:26:21 -05:00
|
|
|
.project-access-icon
|
|
|
|
= visibility_level_icon(project.visibility_level)
|
2013-06-19 10:48:43 -04:00
|
|
|
= link_to project_path(project), class: dom_class(project) do
|
2013-10-21 03:32:05 -04:00
|
|
|
= project.name_with_namespace
|
2013-03-18 13:22:15 -04:00
|
|
|
|
2013-11-05 09:41:29 -05:00
|
|
|
- if current_user.can_leave_project?(project)
|
|
|
|
.pull-right
|
2013-12-10 14:33:21 -05:00
|
|
|
= link_to leave_project_team_members_path(project), data: { confirm: "Leave project?"}, method: :delete, remote: true, class: "btn-tiny btn remove-row", title: 'Leave project' do
|
2013-11-05 09:41:29 -05:00
|
|
|
%i.icon-signout
|
|
|
|
Leave
|
|
|
|
|
2013-07-29 15:59:41 -04:00
|
|
|
- if project.forked_from_project
|
|
|
|
%small.pull-right
|
|
|
|
%i.icon-code-fork
|
|
|
|
Forked from:
|
|
|
|
= link_to project.forked_from_project.name_with_namespace, project_path(project.forked_from_project)
|
|
|
|
.project-info
|
|
|
|
.pull-right
|
2013-11-29 11:10:59 -05:00
|
|
|
- if project.archived?
|
|
|
|
%span.label
|
2013-12-17 14:35:51 -05:00
|
|
|
%i.icon-archive
|
2013-11-29 11:10:59 -05:00
|
|
|
Archived
|
2013-07-29 15:59:41 -04:00
|
|
|
- project.labels.each do |label|
|
|
|
|
%span.label.label-info
|
|
|
|
%i.icon-tag
|
|
|
|
= label.name
|
|
|
|
- if project.description.present?
|
|
|
|
%p= truncate project.description, length: 100
|
|
|
|
.last-activity
|
|
|
|
%span.light Last activity:
|
|
|
|
%span.date= project_last_activity(project)
|
2013-01-27 05:56:20 -05:00
|
|
|
|
2013-11-05 09:41:29 -05:00
|
|
|
|
2013-06-19 10:48:43 -04:00
|
|
|
- if @projects.blank?
|
|
|
|
%li
|
|
|
|
%h3.nothing_here_message There are no projects here.
|
2013-03-18 13:22:15 -04:00
|
|
|
.bottom
|
|
|
|
= paginate @projects, theme: "gitlab"
|
2013-01-27 05:34:27 -05:00
|
|
|
|