Commit 98d697a1a6adf2e69831dafb05fc36fdd4b797b6
1 parent
ab094e67
Exists in
spb-stable
and in
2 other branches
Show small notice at profile page about publicity
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
1 changed file
with
6 additions
and
0 deletions
Show diff stats
app/views/profiles/show.html.haml
| @@ -86,5 +86,11 @@ | @@ -86,5 +86,11 @@ | ||
| 86 | %hr | 86 | %hr |
| 87 | = 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" | 87 | = 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" |
| 88 | 88 | ||
| 89 | + - if @user.public_profile? | ||
| 90 | + .bs-callout.bs-callout-info | ||
| 91 | + %h4 Public profile | ||
| 92 | + %p Your profile is publicly visible because you joined public project(s) | ||
| 93 | + | ||
| 94 | + | ||
| 89 | .form-actions | 95 | .form-actions |
| 90 | = f.submit 'Save changes', class: "btn btn-save" | 96 | = f.submit 'Save changes', class: "btn btn-save" |