index.html.haml 1.42 KB
Newer Older
gitlabhq's avatar
gitlabhq committed
1 2
- content_for(:body_class, "dashboard-page")

gitlabhq's avatar
gitlabhq committed
3 4 5
#dashboard-content.dashboard-content.content
  %aside
    %h4
gitlabhq's avatar
gitlabhq committed
6 7
      - if current_user.can_create_project?
        %a.button-small.button-green{:href => new_project_path} New Repository
gitlabhq's avatar
gitlabhq committed
8 9 10 11
      Your Repositories
    %ol.project-list
      - @projects.each do |project|
        %li
gitlabhq's avatar
gitlabhq committed
12
          %a{:href => project_path(project)}
gitlabhq's avatar
gitlabhq committed
13 14 15 16 17 18 19 20 21
            %span.arrow
            %span.project-name= project.name
            %span.time
              %strong Last activity:
              = project.last_activity_date ? time_ago_in_words(project.last_activity_date) + " ago" : "Never"
  #news-feed.news-feed
    %h2.icon
      %span>
      Dashboard
gitlabhq's avatar
gitlabhq committed
22
    - @active_projects.first(3).each do |project|
gitlabhq's avatar
gitlabhq committed
23 24 25
      .project-box.project-updates.ui-box.ui-box-small.ui-box-big
        %h3= project.name
        .data
26
          - project.updates(4).each do |update|
gitlabhq's avatar
gitlabhq committed
27
            %a.project-update{:href => dashboard_feed_path(project, update)}
28
              = image_tag gravatar_icon(update.author_email), :class => "left", :width => 40
gitlabhq's avatar
gitlabhq committed
29
              %span.update-title
30 31
                - if update.kind_of?(Grit::Commit) 
                  %span.tag.commit= update.head.name
gitlabhq's avatar
gitlabhq committed
32 33
                = dashboard_feed_title(update)
              %span.update-author
34
                %strong= update.author_name
gitlabhq's avatar
gitlabhq committed
35 36 37
                authored
                = time_ago_in_words(update.created_at) 
                ago
gitlabhq's avatar
gitlabhq committed
38 39
  / #news-feed
/ #dashboard-content