Show small notice at profile page about publicity

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2014-06-07 15:18:01 +03:00
parent ab094e67ee
commit 98d697a1a6
No known key found for this signature in database
GPG key ID: 627C5F589F467F17

View file

@ -86,5 +86,11 @@
%hr
= link_to 'Remove avatar', profile_avatar_path, data: { confirm: "Avatar will be removed. Are you sure?"}, method: :delete, class: "btn btn-remove btn-small remove-avatar"
- if @user.public_profile?
.bs-callout.bs-callout-info
%h4 Public profile
%p Your profile is publicly visible because you joined public project(s)
.form-actions
= f.submit 'Save changes', class: "btn btn-save"