project membership widget. css fixes
This commit is contained in:
parent
96b53a9f59
commit
e64a174968
7 changed files with 54 additions and 41 deletions
10
app/views/widgets/_recent_projects.html.haml
Normal file
10
app/views/widgets/_recent_projects.html.haml
Normal file
|
@ -0,0 +1,10 @@
|
|||
- if current_user.projects.count > 0
|
||||
%div.widget
|
||||
%h4
|
||||
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
|
Loading…
Add table
Add a link
Reference in a new issue