Skip to content

Commit

Permalink
Don't show user list if not logged in.
Browse files Browse the repository at this point in the history
Conflicts:
	app/views/layouts/application.html.haml
  • Loading branch information
steveyken committed Jan 7, 2014
1 parent 14b9f29 commit c91351c
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions app/views/layouts/application.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,16 @@
= hook(:javascript_includes, self)

:javascript
#{yield :javascript}
var _ffcrm_users = [
#{User.all.map{|u| "\"#{u.full_name} (@#{u.username})\"" }.join(",\n")}
];

crm.language = "#{I18n.locale}"
window.controller = "#{controller.controller_name}"

- if current_user.present?
:javascript
#{yield :javascript}
var _ffcrm_users = [
#{User.all.map{|u| "\"#{u.full_name} (@#{u.username})\"" }.join(",\n")}
];

<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<link rel="icon" href="/favicon.ico" type="image/x-icon">

Expand Down

0 comments on commit c91351c

Please sign in to comment.