Browse files


## Final steps

There's just a couple of things to do to round this part of the tutorial off. Firstly, you might have noticed there's no place to create a new project at the moment. There's also no place that list "Projects you have joined". We'll add both of those to the front page, in the place we currently have a list of "Your projects". Replace that entire `<section class="content-body">` with the following DRYML:


Notice how we set the context on the entire section to be the current user (`with="&current_user"`). That makes the markup inside the section much more compact and easy to read.
  • Loading branch information...
bryanlarsen authored and iox committed Jun 3, 2013
1 parent bded07b commit 5d52b7cfbac5027306276e135cc918549366c052
Showing with 7 additions and 2 deletions.
  1. +7 −2 app/views/front/index.dryml
@@ -23,9 +23,14 @@
<section class="content-body" if="&logged_in?">
<section with="&current_user" class="content-body" if="&logged_in?">
<h3>Your Projects</h3>
<collection:projects with="&current_user"><card without-creator-link/></collection>
<collection:projects><card without-creator-link/></collection>
<a:projects action="new">New Project</a>
<h3>Projects you have joined</h3>
<collection:joined-projects><card without-creator-link/></collection>

0 comments on commit 5d52b7c

Please sign in to comment.