Revert "[issue #195] Removed leave button from groups projects."
This reverts commit 014fd706db9894f09cbffa8372009290324dbfe8.
This commit is contained in:
parent
869fa0da31
commit
bac8f0a285
|
@ -7,7 +7,7 @@ json.project do |proj|
|
||||||
|
|
||||||
proj.role t("layout.collaborators.role_names.#{project.relations.by_user_through_groups(current_user).first.role}").force_encoding(Encoding::UTF_8)
|
proj.role t("layout.collaborators.role_names.#{project.relations.by_user_through_groups(current_user).first.role}").force_encoding(Encoding::UTF_8)
|
||||||
|
|
||||||
proj.leave_link remove_user_project_path(project) unless project.owner == current_user or project.owner.class == Group
|
proj.leave_link remove_user_project_path(project) unless project.owner == current_user
|
||||||
|
|
||||||
proj.owner do |owner|
|
proj.owner do |owner|
|
||||||
owner.name project.owner.uname
|
owner.name project.owner.uname
|
||||||
|
|
Loading…
Reference in New Issue