gitlabhq/app/views/dashboard/index.html.haml

58 lines
1.8 KiB
Plaintext
Raw Normal View History

2012-03-05 23:29:40 +01:00
- if @projects.any?
.projects
.activities.span8
= render 'shared/no_ssh'
- if @events.any?
2012-07-21 09:23:05 +02:00
.content_list= render @events
- else
2012-06-12 13:58:44 +02:00
%h4.nothing_here_message Projects activity will be displayed here
2012-07-21 09:23:05 +02:00
.loading.hide
.side
= render "events/event_last_push", event: @last_push
.projects_box
2012-03-05 23:29:40 +01:00
%h5
Projects
2012-03-19 23:05:35 +01:00
%small
(#{@projects.total_count})
2012-03-05 23:29:40 +01:00
- if current_user.can_create_project?
%span.right
= link_to new_project_path, class: "btn very_small info" do
%i.icon-plus
2012-03-05 23:29:40 +01:00
New Project
2012-08-30 07:13:36 +02:00
%ul.unstyled
- @projects.each do |project|
%li.wll
= link_to project_path(project), class: dom_class(project) do
%strong.project_name= truncate(project.name, length: 25)
%span.arrow
→
%span.last_activity
%strong Last activity:
%span= project_last_activity(project)
.bottom= paginate @projects, theme: "gitlab"
2012-03-05 23:29:40 +01:00
%hr
%div
%span.rss-icon
= link_to dashboard_path(:atom, { private_token: current_user.private_token }) do
= image_tag "rss_ui.png", title: "feed"
%strong News Feed
- else
%h3.nothing_here_message There are no projects you have access to.
2012-03-05 23:29:40 +01:00
%br
%h4.nothing_here_message
- if current_user.can_create_project?
2012-03-05 23:29:40 +01:00
You can create up to
= current_user.projects_limit
projects. Click on button below to add a new one
2012-03-05 23:29:40 +01:00
.link_holder
= link_to new_project_path, class: "btn primary" do
New Project »
- else
If you will be added to project - it will be displayed here
2012-07-21 09:23:05 +02:00
:javascript
2012-07-21 09:23:05 +02:00
$(function(){ Pager.init(20); });