Commit 1d4adca8665df6d694264a683a7654f0a0091a13
1 parent
df9517ff
Exists in
master
and in
4 other branches
Fix bug when open a profile page
Signed-off-by: Luciano Prestes Cavalcanti <lucianopcbr@gmail.com> Signed-off-by: Simiao Carvalho <simiaosimis@gmail.com>
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
views/profile/index.html.erb
| ... | ... | @@ -11,7 +11,7 @@ |
| 11 | 11 | <% end %> |
| 12 | 12 | |
| 13 | 13 | <div class="page-profile-header"> |
| 14 | - <%= render "blocks/profile_info_actions/join_leave_community" %> | |
| 14 | + <%= render "blocks/profile_info_actions/join_leave_community" if profile.class == "Community" %> | |
| 15 | 15 | <% if !user.nil? && user.has_permission?('edit_profile', profile) %> |
| 16 | 16 | <div class="control-panel-button"> |
| 17 | 17 | <%= button :control_panel, _('Control Panel'), profile.admin_url %> | ... | ... |