2011-11-01 23:19:29 +01:00
|
|
|
- content_for(:body_class, "dashboard-page")
|
|
|
|
|
2011-10-31 21:57:16 +01:00
|
|
|
#dashboard-content.dashboard-content.content
|
|
|
|
%aside
|
|
|
|
%h4
|
2011-11-02 21:14:03 +01:00
|
|
|
- if current_user.can_create_project?
|
|
|
|
%a.button-small.button-green{:href => new_project_path} New Repository
|
2011-10-31 21:57:16 +01:00
|
|
|
Your Repositories
|
|
|
|
%ol.project-list
|
|
|
|
- @projects.each do |project|
|
|
|
|
%li
|
2011-11-02 21:14:03 +01:00
|
|
|
%a{:href => project_path(project)}
|
2011-10-31 21:57:16 +01:00
|
|
|
%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
|
2011-11-02 21:14:03 +01:00
|
|
|
- @active_projects.first(3).each do |project|
|
2011-10-31 21:57:16 +01:00
|
|
|
.project-box.project-updates.ui-box.ui-box-small.ui-box-big
|
|
|
|
%h3= project.name
|
|
|
|
.data
|
2011-11-09 00:56:10 +01:00
|
|
|
- project.updates(4).each do |update|
|
2011-11-02 21:14:03 +01:00
|
|
|
%a.project-update{:href => dashboard_feed_path(project, update)}
|
2011-11-03 11:56:26 +01:00
|
|
|
= image_tag gravatar_icon(update.author_email), :class => "left", :width => 40
|
2011-11-02 21:14:03 +01:00
|
|
|
%span.update-title
|
|
|
|
= dashboard_feed_title(update)
|
|
|
|
%span.update-author
|
2011-11-03 11:56:26 +01:00
|
|
|
%strong= update.author_name
|
2011-11-02 21:14:03 +01:00
|
|
|
authored
|
2011-11-15 09:34:30 +01:00
|
|
|
= time_ago_in_words(update.created_at)
|
2011-11-02 21:14:03 +01:00
|
|
|
ago
|
2011-11-22 14:33:42 +01:00
|
|
|
.right
|
|
|
|
- klass = update.class.to_s.split("::").last.downcase
|
|
|
|
%span.tag{ :class => klass }= klass
|
2011-10-31 21:57:16 +01:00
|
|
|
/ #news-feed
|
|
|
|
/ #dashboard-content
|