Minor fixes
This commit is contained in:
parent
627efddf63
commit
2587de74df
15 changed files with 146 additions and 62 deletions
17
app/views/dashboard/_issues.html.haml
Normal file
17
app/views/dashboard/_issues.html.haml
Normal file
|
@ -0,0 +1,17 @@
|
|||
%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")
|
20
app/views/dashboard/_merge_requests.html.haml
Normal file
20
app/views/dashboard/_merge_requests.html.haml
Normal file
|
@ -0,0 +1,20 @@
|
|||
%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
|
||||
|
||||
|
22
app/views/dashboard/_projects.html.haml
Normal file
22
app/views/dashboard/_projects.html.haml
Normal file
|
@ -0,0 +1,22 @@
|
|||
%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)
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue