-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add member list to detail view #376
base: dev
Are you sure you want to change the base?
Conversation
<% else %> | ||
<td> | ||
</td> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this worth an extra issue?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think its fine just fixing it here
<table class="table table-bordered"> | ||
<thead> | ||
<tr> | ||
<th scope="col"><%= t(:member_name) %></th> | ||
<th scope="col"><%= t(:member_email) %></th> | ||
<th scope="col" style="width: 3rem"></th> | ||
</tr> | ||
</thead> | ||
<tbody class="table-group-divider"> | ||
<% @group.users.each do |user| %> | ||
<tr> | ||
<td><%= user.full_name %></td> | ||
<td><%= user.email %></td> | ||
<% if not user.admin_in?(@group) %> | ||
<td> | ||
<%= mail_to user.email, class: "btn btn-sm btn-secondary" do %> | ||
<i class="bi bi-chat-fill"></i> | ||
<% end %> | ||
</td> | ||
<% else %> | ||
<td> | ||
</td> | ||
<% end %> | ||
</tr> | ||
<% end %> | ||
</tbody> | ||
</table> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is copied from edit.html.erb
right?, would it be an option to make use of components/fragments to minimize duplication?
@@ -10,3 +10,30 @@ | |||
<%= t('items.headlines.items') %> | |||
</h5> | |||
<%= render GroupItemListComponent.new(group: @group) %> | |||
<table class="table table-bordered"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The member count should also be displayed as seen in the wireframe.
Also already done in edit.html.erb
closes #318