We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6bc9423 commit 992fef8Copy full SHA for 992fef8
app/views/layouts/protip.html.haml
@@ -28,9 +28,10 @@
28
%canvas.blur{ src: image_path(users_background_image) }
29
= yield
30
31
- #x-following-users.hide{'data-users' => current_user.following_users.map(&:username)}
32
- #x-following-networks.hide{'data-networks' => current_user.following_networks.map(&:slug)}
33
- #x-following-teams.hide{'data-teams' => current_user.teams_being_followed.map(&:name)}
+ - if current_user
+ #x-following-users.hide{'data-users' => current_user.following_users.map(&:username)}
+ #x-following-networks.hide{'data-networks' => current_user.following_networks.map(&:slug)}
34
+ #x-following-teams.hide{'data-teams' => current_user.teams_being_followed.map(&:name)}
35
36
- unless is_admin?
37
:javascript
0 commit comments