Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: e590b3600c
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (20 sloc) 1.027 kB
removing-members-2
From: Bryan Larsen <bryan@larsen.st>
We have a problem -- the membership card doesn't display the user's name. There are two ways we could fix this. We could either customise the global membership card using `<extend tag="card" for="Membership">` in `application.dryml`, or we could customise *this particular usage* of the membership card. Let's do the latter. Modify the `<collection:memberships>` as follows:
SHOW_PATCH
---
app/views/projects/show.dryml | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/app/views/projects/show.dryml b/app/views/projects/show.dryml
index d15c65e..c961469 100644
--- a/app/views/projects/show.dryml
+++ b/app/views/projects/show.dryml
@@ -12,7 +12,9 @@
<aside:>
<h2>Project Members</h2>
- <collection:memberships part="members"/>
+ <collection:memberships part="members">
+ <card><heading:><a:user/></heading:></card>
+ </collection>
<form:memberships.new update="members" reset-form refocus-form>
<div>
Jump to Line
Something went wrong with that request. Please try again.