2012-01-28 00:49:14 +01:00
|
|
|
%aside.project-right
|
2012-01-28 10:54:11 +01:00
|
|
|
- if content_for? :sidebar_all
|
|
|
|
= render :sidebar_all
|
2012-01-28 00:49:14 +01:00
|
|
|
- else
|
2012-01-28 10:54:11 +01:00
|
|
|
- if content_for? :sidebar_top_block
|
|
|
|
= yield :sidebar_top_block
|
|
|
|
- else
|
|
|
|
- if can? current_user, :write_project, @project
|
2012-01-29 20:30:03 +01:00
|
|
|
.alert-message.block-message.info
|
|
|
|
You have access to create new issue or merge request.
|
|
|
|
%div
|
|
|
|
= link_to new_project_issue_path(@project), :title => "New Issue", :class => "btn small" do
|
2012-01-28 10:54:11 +01:00
|
|
|
New Issue »
|
2012-01-29 20:30:03 +01:00
|
|
|
%div
|
|
|
|
= link_to new_project_merge_request_path(@project), :title => "New Merge Request", :class => "btn small" do
|
2012-01-28 10:54:11 +01:00
|
|
|
New Merge Request »
|
2012-01-28 00:49:14 +01:00
|
|
|
|
2012-01-29 20:30:03 +01:00
|
|
|
- if current_user.projects.count > 0
|
|
|
|
%div.entry
|
|
|
|
%h5
|
|
|
|
Recent Projects:
|
|
|
|
%ul
|
|
|
|
- current_user.projects.order("id DESC").limit(5).each do |project|
|
|
|
|
%li
|
|
|
|
= link_to project_path(project) do
|
|
|
|
= project.name
|
|
|
|
= link_to "More » ", projects_path
|
2012-01-28 00:49:14 +01:00
|
|
|
|
2012-01-29 20:30:03 +01:00
|
|
|
-#%h4
|
|
|
|
-#Recent Issues:
|
|
|
|
-#%ul
|
|
|
|
-#- current_user.assigned_issues.order("id DESC").limit(5).each do |issue|
|
|
|
|
-#%li
|
|
|
|
-#= link_to project_issue_path(issue.project, issue) do
|
|
|
|
-#= truncate issue.title
|
2012-01-28 00:49:14 +01:00
|
|
|
|
|
|
|
|
2012-01-29 20:30:03 +01:00
|
|
|
-#%h4
|
|
|
|
-#Recent Requests:
|
|
|
|
-#%ul
|
|
|
|
-#- current_user.assigned_merge_requests.order("id DESC").limit(5).each do |issue|
|
|
|
|
-#%li
|
|
|
|
-#= link_to project_merge_request_path(issue.project, issue) do
|
|
|
|
-#= truncate issue.title
|
2012-01-28 00:49:14 +01:00
|
|
|
|
|
|
|
|