Commit graph

15 commits

Author SHA1 Message Date
Sean McGivern
dd4784f3b1 Add MemberExpirationDate JS helper
This helper adds a datepicker to all `js-access-expiration-date`
elements. If that element is a child of a `clearable-input` element and
has a sibling `js-clear-input` element, then it will show a working
clear button to the right of the input field.
2016-08-18 14:14:22 +01:00
Adam Niedzielski
08ecf0e78e Use "is_a?" because it is more readable than checking the "type" field. 2016-08-09 17:45:22 +02:00
Adam Niedzielski
245d4abbbf Single quotes all the way. 2016-08-07 13:42:54 +02:00
Adam Niedzielski
0c3ac82768 Remove inline JavaScript. Add datepicker to the edit form. 2016-08-06 22:53:48 +02:00
Adam Niedzielski
f564535579 Allow to edit access expiration date. 2016-08-05 08:36:09 +02:00
Adam Niedzielski
895c3c55dc Better presentation of member expiration. 2016-08-05 07:28:39 +02:00
Adam Niedzielski
d0aa98bc5d Add Member#expires? method. 2016-08-04 07:56:06 +02:00
Adam Niedzielski
736ff98199 Display expiration date in the project member list. 2016-08-03 20:57:54 +02:00
Dmitriy Zaporozhets
b37b7deedf Fix invite user feature test and improve request member UI row
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2016-07-07 09:15:49 +03:00
Dmitriy Zaporozhets
197b9793db Improve UI for member row on project/group members pages
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2016-07-07 09:15:49 +03:00
Valery Sizov
7950fa48e8 Add data when member joined a team 2016-07-07 09:15:49 +03:00
Rémy Coutable
e71ce77e39 Ensure group/project owners can see their members' access_level
When you are the last owner of a group or the owner of a project,
you don't have the :update_<source>_member / :destroy_<source>_member
abilities, but you do have the :admin_<source>_member so you should
be able to see your members access levels.

Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-06-17 13:03:19 +02:00
Rémy Coutable
b21980bff4 Fix permission checks in member row
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-06-15 18:17:45 +02:00
Rémy Coutable
515205d3c1 UI and copywriting improvements
+ Move 'Edit Project/Group' out of membership-related partial
+ Show the access request buttons only to logged-in users
+ Put the request access buttons out of in a more visible button
+ Improve the copy in the #remove_member_message helper

Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-06-14 13:18:14 +02:00
Rémy Coutable
d26f81239a Add request access for groups
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-06-14 13:07:26 +02:00