Sha256: 6850f03d5b8ff72b7bd9138d009e6c9ef8644119001eda6445f769790a90b773

Contents?: true

Size: 1.1 KB

Versions: 34

Compression:

Stored size: 1.1 KB

Contents

<%- if profile.respond_to?(:checkout_icalendar_token?) -%>
  <%= checkouts_url(icalendar_token: profile.checkout_icalendar_token, format: :ics) if profile.checkout_icalendar_token -%>
  <%= hidden_field_tag 'profile[checkout_icalendar_token]', profile.checkout_icalendar_token -%>
<%- end -%>
<br />
<%- if profile.try(:checkout_icalendar_token?) -%>
  <input onclick="$.ajax({data:'authenticity_token=' + encodeURIComponent('<%= form_authenticity_token %>'), success:function(request){$('#feed_token').html(request);}, type:'get', url:'<%= edit_profile_path(profile, disable: true, mode: 'feed_token') %>'});" type="button" value="<%= t('page.delete') %>" />
  <br />
  <%= t('user.you_have_to_save_profile_to_activate_feed_url') -%>
<%- else -%>
  <input onclick="$.ajax({data:'authenticity_token=' + encodeURIComponent('<%= form_authenticity_token %>'), success:function(request){$('#feed_token').html(request);}, type:'get', url:'<%= edit_profile_path(profile, mode: 'feed_token') %>'});" type="button" value="<%= t('page.reset') %>" />
  <br />
  <%= t('user.you_have_to_save_profile_to_deactivate_feed_url') -%>
<%- end -%>

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
enju_circulation-0.3.11 app/views/profiles/_feed_token.html.erb
enju_circulation-0.3.10 app/views/profiles/_feed_token.html.erb
enju_circulation-0.3.9 app/views/profiles/_feed_token.html.erb
enju_circulation-0.4.0.rc.1 app/views/profiles/_feed_token.html.erb
enju_circulation-0.3.8 app/views/profiles/_feed_token.html.erb
enju_circulation-0.3.7 app/views/profiles/_feed_token.html.erb
enju_circulation-0.4.0.beta.4 app/views/profiles/_feed_token.html.erb
enju_circulation-0.4.0.beta.3 app/views/profiles/_feed_token.html.erb
enju_circulation-0.3.6 app/views/profiles/_feed_token.html.erb
enju_circulation-0.4.0.beta.2 app/views/profiles/_feed_token.html.erb
enju_circulation-0.4.0.beta.1 app/views/profiles/_feed_token.html.erb
enju_circulation-0.3.5 app/views/profiles/_feed_token.html.erb
enju_circulation-0.3.4 app/views/profiles/_feed_token.html.erb
enju_circulation-0.3.3 app/views/profiles/_feed_token.html.erb
enju_circulation-0.3.2 app/views/profiles/_feed_token.html.erb
enju_circulation-0.3.1 app/views/profiles/_feed_token.html.erb
enju_circulation-0.3.0 app/views/profiles/_feed_token.html.erb
enju_circulation-0.3.0.rc.1 app/views/profiles/_feed_token.html.erb
enju_circulation-0.3.0.beta.1 app/views/profiles/_feed_token.html.erb
enju_circulation-0.2.5 app/views/profiles/_feed_token.html.erb