2013-12-29 05:58:00 -05:00
|
|
|
%h3.page-title
|
|
|
|
My Projects
|
2014-12-04 05:10:38 -05:00
|
|
|
|
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
|
2015-01-06 16:09:56 -05:00
|
|
|
.side-filters
|
|
|
|
= render "projects_filter"
|
|
|
|
.dash-projects
|
|
|
|
%ul.bordered-list.my-projects.top-list
|
|
|
|
- @projects.each do |project|
|
|
|
|
%li.my-project-row
|
|
|
|
%h4.project-title
|
2014-01-25 12:15:44 -05:00
|
|
|
.project-avatar
|
|
|
|
= project_icon(project.to_param, alt: '', class: 'avatar s60')
|
2015-01-06 16:09:56 -05:00
|
|
|
.project-access-icon
|
|
|
|
= visibility_level_icon(project.visibility_level)
|
|
|
|
= link_to project_path(project), class: dom_class(project) do
|
|
|
|
= project.name_with_namespace
|
2013-03-18 13:22:15 -04:00
|
|
|
|
2015-01-06 16:09:56 -05:00
|
|
|
- if project.forked_from_project
|
|
|
|
|
|
|
|
%small
|
|
|
|
%i.fa.fa-code-fork
|
|
|
|
Forked from:
|
|
|
|
= link_to project.forked_from_project.name_with_namespace, project_path(project.forked_from_project)
|
2014-12-25 07:58:43 -05:00
|
|
|
|
2015-01-06 16:09:56 -05:00
|
|
|
- if current_user.can_leave_project?(project)
|
2013-07-29 15:59:41 -04:00
|
|
|
.pull-right
|
2015-01-06 16:09:56 -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
|
|
|
|
%i.fa.fa-sign-out
|
|
|
|
Leave
|
|
|
|
|
|
|
|
.project-info
|
|
|
|
.pull-right
|
|
|
|
- if project.archived?
|
|
|
|
%span.label
|
|
|
|
%i.fa.fa-archive
|
|
|
|
Archived
|
|
|
|
- project.tags.each do |tag|
|
|
|
|
%span.label.label-info
|
|
|
|
%i.fa.fa-tag
|
|
|
|
= tag.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
|
|
|
|
2015-01-06 16:09:56 -05:00
|
|
|
- if @projects.blank?
|
|
|
|
%li
|
|
|
|
.nothing-here-block There are no projects here.
|
|
|
|
.bottom
|
|
|
|
= paginate @projects, theme: "gitlab"
|
2013-01-27 05:34:27 -05:00
|
|
|
|