forked from bryanlarsen/agility-gitorial-patches
-
Notifications
You must be signed in to change notification settings - Fork 1
/
64-removing-members-2.patch
26 lines (20 loc) · 1 KB
/
64-removing-members-2.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
removing-members-2
From: Bryan Larsen <[email protected]>
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 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/app/views/projects/show.dryml b/app/views/projects/show.dryml
index 60b06d9..13b6be5 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>