%- if @user.profile.try(:checkout_icalendar_token?) -%>
<%= checkouts_url(icalendar_token: @user.profile.checkout_icalendar_token, format: :ics) -%>
<%= hidden_field_tag 'user.profile.checkout_icalendar_token]', @user.profile.checkout_icalendar_token -%>
<%- end -%>
<%- if @user.profile.try(:checkout_icalendar_token?) -%>
<%= t('user.you_have_to_save_profile_to_activate_feed_url') -%>
<%- else -%>
<%= t('user.you_have_to_save_profile_to_deactivate_feed_url') -%>
<%- end -%>