mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-30 19:52:20 +01:00
fixed erb syntax for decaffeinate
This commit is contained in:
parent
41847d75a2
commit
944fa5f9b9
@ -302,10 +302,10 @@ Application.Controllers.controller 'ApplicationController', ["$rootScope", "$sco
|
||||
# Open the modal window allowing the user to log in.
|
||||
##
|
||||
openLoginModal = (toState, toParams, callback) ->
|
||||
<% active_provider = AuthProvider.active %>
|
||||
<% if active_provider.providable_type != DatabaseProvider.name %>
|
||||
# <% active_provider = AuthProvider.active %>
|
||||
# <% if active_provider.providable_type != DatabaseProvider.name %>
|
||||
$window.location.href = '<%=user_omniauth_authorize_path(AuthProvider.active.strategy_name.to_sym)%>'
|
||||
<% else %>
|
||||
# <% else %>
|
||||
$uibModal.open
|
||||
templateUrl: '<%= asset_path "shared/deviseModal.html" %>'
|
||||
size: 'sm'
|
||||
@ -371,7 +371,7 @@ Application.Controllers.controller 'ApplicationController', ["$rootScope", "$sco
|
||||
growl.info(_t('you_will_receive_in_a_moment_an_email_with_instructions_to_reset_your_password'))
|
||||
|
||||
# otherwise the user just closed the modal
|
||||
<% end %>
|
||||
# <% end %>
|
||||
|
||||
|
||||
|
||||
|
@ -31,7 +31,7 @@ Application.Controllers.controller "EventsController", ["$scope", "$state", 'Eve
|
||||
theme_id: null
|
||||
age_range_id: null
|
||||
|
||||
$scope.monthNames = [<%= t('date.month_names')[1..-1].map { |m| "\"#{m}\"" }.join(', ') %>]
|
||||
# $scope.monthNames = [<%= t('date.month_names')[1..-1].map { |m| "\"#{m}\"" }.join(', ') %>]
|
||||
|
||||
##
|
||||
# Adds a resultset of events to the bottom of the page, grouped by month
|
||||
|
19
decaffeinate-errors.log
Normal file
19
decaffeinate-errors.log
Normal file
@ -0,0 +1,19 @@
|
||||
===== /home/sylvain/workspace/fab-manager/app/assets/javascripts/controllers/application.coffee
|
||||
NormalizeStage failed to parse: unexpected <
|
||||
303 | ##
|
||||
304 | openLoginModal = (toState, toParams, callback) ->
|
||||
> 305 | <% active_provider = AuthProvider.active %>
|
||||
| ^
|
||||
306 | <% if active_provider.providable_type != DatabaseProvider.name %>
|
||||
307 | $window.location.href = '<%=user_omniauth_authorize_path(AuthProvider.active.strategy_name.to_sym)%>'
|
||||
|
||||
|
||||
===== /home/sylvain/workspace/fab-manager/app/assets/javascripts/controllers/events.coffee
|
||||
NormalizeStage failed to parse: unexpected <
|
||||
32 | age_range_id: null
|
||||
33 |
|
||||
> 34 | $scope.monthNames = [<%= t('date.month_names')[1..-1].map { |m| "\"#{m}\"" }.join(', ') %>]
|
||||
| ^
|
||||
35 |
|
||||
36 | ##
|
||||
|
Loading…
x
Reference in New Issue
Block a user