Added dashboard page. Projects page not root from now
This commit is contained in:
parent
34e1580184
commit
376bec26de
16 changed files with 141 additions and 39 deletions
|
@ -1,17 +1,8 @@
|
|||
- @active_projects.first(3).each do |project|
|
||||
= link_to project do
|
||||
%h4= project.name
|
||||
- project.updates(3).each do |update|
|
||||
%a.project-update{:href => dashboard_feed_path(project, update)}
|
||||
= image_tag gravatar_icon(update.author_email), :class => "avatar", :width => 32
|
||||
%div
|
||||
= 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
|
||||
|
||||
- @active_projects.first(10).each do |project|
|
||||
.wll
|
||||
= link_to project do
|
||||
%h4
|
||||
= project.name
|
||||
%small
|
||||
last activity at
|
||||
= project.last_activity_date_cached.stamp("Aug 25, 2011")
|
||||
|
|
|
@ -1,3 +1,56 @@
|
|||
%h3 Activities
|
||||
%hr
|
||||
.news-feed= render "dashboard/projects_feed"
|
||||
- if current_user.require_ssh_key?
|
||||
.alert-message.warning
|
||||
%p
|
||||
You wont be able to pull/push project code unless you
|
||||
= link_to new_key_path, :class => "vlink" do
|
||||
add new key
|
||||
to your profile
|
||||
|
||||
%div.dashboard_category
|
||||
%h3
|
||||
Projects
|
||||
%small
|
||||
( most recent )
|
||||
|
||||
%strong.right
|
||||
= link_to projects_path do
|
||||
Projects list →
|
||||
%hr
|
||||
.row
|
||||
.dashboard_block
|
||||
.row
|
||||
.span9= render "dashboard/projects_feed"
|
||||
.span3.right
|
||||
- if current_user.can_create_project?
|
||||
.alert-message.block-message.warning
|
||||
You can create up to
|
||||
= current_user.projects_limit
|
||||
projects. Click on link below to add a new one
|
||||
.link_holder
|
||||
= link_to new_project_path, :class => "" do
|
||||
New Project »
|
||||
|
||||
|
||||
- unless @merge_requests.blank?
|
||||
%div.dashboard_category
|
||||
%h3
|
||||
Merge Requests
|
||||
%small ( authored or assigned to you )
|
||||
%strong.right
|
||||
= link_to dashboard_merge_requests_path do
|
||||
Vist merge requests page →
|
||||
%hr
|
||||
.row
|
||||
.dashboard_block= render "dashboard/merge_requests_feed"
|
||||
|
||||
- unless @issues.blank?
|
||||
%div.dashboard_category
|
||||
%h3
|
||||
Issues
|
||||
%small ( assigned to you )
|
||||
%strong.right
|
||||
= link_to dashboard_merge_requests_path do
|
||||
Vist issues page →
|
||||
%hr
|
||||
.row
|
||||
.dashboard_block= render "dashboard/issues_feed"
|
||||
|
|
|
@ -2,5 +2,5 @@
|
|||
Issues
|
||||
%small ( assigned to you )
|
||||
|
||||
%hr
|
||||
= render "dashboard/issues_feed"
|
||||
%br
|
||||
.ui-box= render "dashboard/issues_feed"
|
||||
|
|
|
@ -2,5 +2,5 @@
|
|||
Merge Requests
|
||||
%small ( authored or assigned to you )
|
||||
|
||||
%hr
|
||||
= render "dashboard/merge_requests_feed"
|
||||
%br
|
||||
.ui-box= render "dashboard/merge_requests_feed"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue