Skip to content
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

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

TobiPeterG
Copy link
Collaborator

closes #318

Comment on lines +36 to +38
<% else %>
<td>
</td>
Copy link
Collaborator Author

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?

Copy link
Collaborator

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

Comment on lines +13 to +39
<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>
Copy link
Collaborator

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">
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add member list to group detail view
2 participants