Projects page as dashboard. Old dashboard removed
This commit is contained in:
parent
5f31989a05
commit
95fde9bd7a
13 changed files with 37 additions and 208 deletions
|
@ -1,17 +0,0 @@
|
|||
%div.ui-box
|
||||
%h5
|
||||
= link_to "Issues" , "#issues", :id => "issues"
|
||||
%small (assigned to you)
|
||||
%ul.unstyled
|
||||
- @issues.each do |issue|
|
||||
%li.wll
|
||||
= link_to [issue.project, issue] do
|
||||
%p
|
||||
%span.btn.disabled.small= issue.project.name
|
||||
%strong
|
||||
–
|
||||
Issue #
|
||||
= issue.id
|
||||
= truncate issue.title, :length => 50
|
||||
%span.right.cgray
|
||||
= issue.updated_at.stamp("Aug 21, 2011")
|
|
@ -1,12 +0,0 @@
|
|||
- @issues.each do |issue|
|
||||
.wll
|
||||
= link_to [issue.project, issue] do
|
||||
%p
|
||||
%strong
|
||||
%span= issue.project.name
|
||||
–
|
||||
Issue #
|
||||
= issue.id
|
||||
= truncate issue.title, :length => 50
|
||||
%span.right.cgray
|
||||
= issue.updated_at.stamp("Aug 21, 2011")
|
|
@ -1,20 +0,0 @@
|
|||
%div.ui-box
|
||||
%h5
|
||||
= link_to "5 Latest Merge Requests" , "#merge_requests", :id => "merge_requests"
|
||||
%small (authored or assigned to you)
|
||||
%ul.unstyled
|
||||
- @merge_requests.each do |merge_request|
|
||||
%li.wll
|
||||
= link_to [merge_request.project, merge_request] do
|
||||
%p
|
||||
%span.btn.disabled.small= merge_request.project.name
|
||||
%strong
|
||||
–
|
||||
Merge Request ##{merge_request.id}
|
||||
= truncate merge_request.title, :length => 50
|
||||
%span.right.cgray
|
||||
= merge_request.updated_at.stamp("Aug 21, 2011")
|
||||
|
||||
%li.bottom
|
||||
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
- @merge_requests.each do |merge_request|
|
||||
.wll
|
||||
= link_to [merge_request.project, merge_request] do
|
||||
%p
|
||||
%strong
|
||||
%strong= merge_request.project.name
|
||||
–
|
||||
Merge Request ##{merge_request.id}
|
||||
= truncate merge_request.title, :length => 50
|
||||
%span.right.cgray
|
||||
= merge_request.updated_at.stamp("Aug 21, 2011")
|
|
@ -1,22 +0,0 @@
|
|||
%div
|
||||
%h3
|
||||
%span.ico.projects
|
||||
Projects
|
||||
%small
|
||||
(most recent)
|
||||
%hr
|
||||
%div.dash_projects
|
||||
- projects.first(5).each do |project|
|
||||
%div.dash_project
|
||||
%h4
|
||||
= link_to project, :class => "project_link" do
|
||||
= truncate project.name, :length => 30
|
||||
%small
|
||||
last activity at
|
||||
= project.last_activity_date.stamp("Aug 25, 2011")
|
||||
|
||||
.right
|
||||
%small
|
||||
%strong= link_to "Browse Code »", tree_project_ref_path(project, project.root_ref), :class => "neib"
|
||||
%strong= link_to "Commits »", project_commits_path(project)
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
- projects.first(5).each do |project|
|
||||
%div.dash_project_item
|
||||
%h4
|
||||
= link_to project, :class => "project_link" do
|
||||
%span.ico.project
|
||||
= truncate project.name, :length => 24
|
||||
|
||||
%small
|
||||
last activity at
|
||||
= project.last_activity_date.stamp("Aug 25, 2011")
|
||||
|
||||
.right
|
||||
%small
|
||||
%strong= link_to "Browse Code »", tree_project_ref_path(project, project.root_ref), :class => "neib gray"
|
||||
%strong= link_to "Commits »", project_commits_path(project), :class => "gray"
|
|
@ -1,82 +0,0 @@
|
|||
- if current_user.require_ssh_key?
|
||||
.alert-message.block-message.error
|
||||
%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
|
||||
%span.ico.projects
|
||||
= link_to "Projects" , "#projects", :id => "projects"
|
||||
%small
|
||||
(most recent)
|
||||
|
||||
%strong.right
|
||||
= link_to projects_path do
|
||||
Projects list →
|
||||
%hr
|
||||
.dashboard_block
|
||||
.row
|
||||
.span3.right
|
||||
%div.lborder.ipadded
|
||||
%h3
|
||||
= pluralize current_user.projects.count, "project", "projects"
|
||||
- if current_user.can_create_project?
|
||||
%hr
|
||||
%div
|
||||
You can create up to
|
||||
= current_user.projects_limit
|
||||
projects. Click on button below to add a new one
|
||||
.link_holder
|
||||
%br
|
||||
= link_to new_project_path, :class => "btn" do
|
||||
New Project »
|
||||
- else
|
||||
%hr
|
||||
%div
|
||||
You've reached project limit for your account.
|
||||
You cannot create new projects.
|
||||
.link_holder
|
||||
%br
|
||||
= link_to profile_path, :class => "btn" do
|
||||
Your Profile »
|
||||
.span9.left= render "dashboard/projects_feed", :projects => @active_projects
|
||||
- if @last_push && @last_push.valid_push?
|
||||
.padded.prepend-top-20
|
||||
%h5
|
||||
%small Latest push was to the #{@last_push.ref_name} #{@last_push.ref_type} of #{@last_push.project.name}:
|
||||
%ul.unstyled= render @last_push
|
||||
|
||||
- if @merge_requests.any?
|
||||
%div.dashboard_category
|
||||
%h3
|
||||
= link_to "Merge Requests" , "#merge_requests", :id => "merge_requests"
|
||||
|
||||
%small (authored or assigned to you)
|
||||
%strong.right
|
||||
= link_to dashboard_merge_requests_path do
|
||||
Visit merge requests page →
|
||||
%hr
|
||||
.dashboard_block= render "dashboard/merge_requests_feed"
|
||||
|
||||
- if @issues.any?
|
||||
%div.dashboard_category
|
||||
%h3
|
||||
= link_to "Issues" , "#issues", :id => "issues"
|
||||
%small (assigned to you)
|
||||
%strong.right
|
||||
= link_to dashboard_issues_path do
|
||||
Visit issues page →
|
||||
%hr
|
||||
.dashboard_block= render "dashboard/issues_feed"
|
||||
|
||||
- if @events.any?
|
||||
%div.dashboard_category
|
||||
%h3
|
||||
%span.ico.activities
|
||||
= link_to "Activities" , "#activities", :id => "activities"
|
||||
|
||||
%hr
|
||||
.dashboard_block= render @events
|
Loading…
Add table
Add a link
Reference in a new issue