user dashboard
This commit is contained in:
parent
267bd6068c
commit
485c5199b7
7 changed files with 73 additions and 4 deletions
|
@ -1 +1,36 @@
|
|||
timeline
|
||||
#dashboard-content.dashboard-content.content
|
||||
%aside
|
||||
%h4
|
||||
%a.button-small.button-green{:href => ""} New Repository
|
||||
Your Repositories
|
||||
%ol.project-list
|
||||
- @projects.each do |project|
|
||||
%li
|
||||
%a{:href => "#"}
|
||||
%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.each do |project|
|
||||
.project-box.project-updates.ui-box.ui-box-small.ui-box-big
|
||||
%h3= project.name
|
||||
.data
|
||||
- project.updates.each do |update|
|
||||
%a.project-update{:href => path_to_object(project, update)}
|
||||
%img{:src => "http://placehold.it/40x40"}
|
||||
%span.update-title [#{update.class.name}] added a matcher that helps debugging matching problems
|
||||
%span.update-author
|
||||
%strong= update.author.name
|
||||
authored
|
||||
= time_ago_in_words(update.created_at)
|
||||
ago
|
||||
%br
|
||||
/ .project-update
|
||||
/ .project-updates
|
||||
/ #news-feed
|
||||
/ #dashboard-content
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
</div>
|
||||
<div class="right">
|
||||
<%= link_to truncate(@project.name, :length => 20), project_path(@project), :class => "current button" if @project && !@project.new_record? %>
|
||||
<%= link_to 'Dashboard', dashboard_path, :class => current_page?(dashboard_path) ? "current button" : "button" %>
|
||||
<%= link_to 'Projects', projects_path, :class => current_page?(projects_path) ? "current button" : "button" %>
|
||||
<%= link_to('Admin', admin_root_path, :class => admin_namespace? ? "current button" : "button" ) if current_user.is_admin? %>
|
||||
<%= link_to profile_path, :class => ((controller.controller_name == "keys" || controller.controller_name == "profile") ? "current button" : "button") do %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue