project membership widget. css fixes
This commit is contained in:
parent
96b53a9f59
commit
e64a174968
7 changed files with 54 additions and 41 deletions
|
@ -4,43 +4,5 @@
|
|||
- else
|
||||
- if content_for? :sidebar_top_block
|
||||
= yield :sidebar_top_block
|
||||
- else
|
||||
- if can? current_user, :write_project, @project
|
||||
.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
|
||||
New Issue »
|
||||
%div
|
||||
= link_to new_project_merge_request_path(@project), :title => "New Merge Request", :class => "btn small" do
|
||||
New Merge Request »
|
||||
|
||||
- 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
|
||||
|
||||
-#%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
|
||||
|
||||
|
||||
-#%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
|
||||
|
||||
|
||||
= render "widgets/project_member"
|
||||
= render "widgets/recent_projects"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue