Navigation Menu

Skip to content

Commit

Permalink
fix-front-page
Browse files Browse the repository at this point in the history
## 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:

SHOW_PATCH

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 committed Feb 19, 2010
1 parent 6435a19 commit 4f899f8
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions app/views/front/index.dryml
Expand Up @@ -22,9 +22,14 @@
</section>
</header>

<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>
</section>
</content:>

Expand Down

0 comments on commit 4f899f8

Please sign in to comment.