Welcome to mirror list, hosted at ThFree Co, Russian Federation.

index.html.haml « dashboard « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ef01c0a0591adcc0101b62214ad86f835934c02b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
- content_for(:body_class, "dashboard-page")

#dashboard-content.dashboard-content.content
  %aside
    %h4
      - if current_user.can_create_project?
        %a.button-small.button-green{:href => new_project_path} New Repository
      Your Repositories
    %ol.project-list
      - @projects.each do |project|
        %li
          %a{:href => project_path(project)}
            %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
    - @active_projects.first(3).each do |project|
      .project-box.project-updates.ui-box.ui-box-small.ui-box-big
        %h3= project.name
        .data
          - project.updates(3).each do |update|
            %a.project-update{:href => dashboard_feed_path(project, update)}
              = image_tag gravatar_icon(update.author_email), :class => "left", :width => 40
              %span.update-title
                = dashboard_feed_title(update)
              %span.update-author
                %strong= update.author_name
                authored
                = time_ago_in_words(update.created_at)
                ago
              .right
                - klass = update.class.to_s.split("::").last.downcase
                %span.tag{ :class => klass }= klass
  / #news-feed
/ #dashboard-content