Upgraded from render file to render template (render file will be deprecated)

This commit is contained in:
echarp 2019-11-17 12:56:11 +01:00
parent 9d14d86eba
commit e36e37c66c
24 changed files with 33 additions and 33 deletions

View File

@ -10,7 +10,7 @@
= surround '<'.html_safe, '>'.html_safe do
= cancel_event_url @event, secret: @event.secret
\
- if @event.repeat > 0 && !@event.event_id
- if @event.repeat.positive? && !@event.event_id
= t '.repeat_helper', count: @event.repeat
- @event.events.each do |e|
= e
@ -20,6 +20,6 @@
= cancel_event_url e, secret: e.secret
\
!= t '.reminder'
= render file: '/events/show'
= render template: '/events/show'
\
!= t '.signature'

View File

@ -5,6 +5,6 @@
!= t '.reclamation'
\
!= t '.reminder'
= render file: '/events/show'
= render template: '/events/show'
\
!= t '.signature'

View File

@ -1,12 +1,12 @@
!= t '.body', subject: @event.title, author: @current_user || t('.submitter')
:ruby
new = render file: '/events/show'
new = render template: '/events/show'
former = @event
@event = @event.paper_trail.previous_version || @event
prev = render file: '/events/show'
prev = render template: '/events/show'
@event = former
require 'differ/format/patch'

View File

@ -24,4 +24,4 @@
%fieldset
%legend= Event.model_name.human
= render file: '/events/show'
= render template: '/events/show'

View File

@ -11,7 +11,7 @@
%legend
%em.fa.fa-eye
= t '.preview'
= render file: '/events/show'
= render template: '/events/show'
%fieldset
%legend

View File

@ -7,7 +7,7 @@
%legend
%em.fa.fa-eye
= t '.preview'
= render file: '/events/show'
= render template: '/events/show'
- else
:markdown

View File

@ -1,7 +1,7 @@
!= t '.body', author: @current_user
\
!= t '.reminder'
= render file: '/events/show'
= render template: '/events/show'
\
!= t '.access'
= surround '<'.html_safe, '>'.html_safe do

View File

@ -3,6 +3,6 @@
= surround '<'.html_safe, '>'.html_safe do
= moderations_url
\
= render file: '/events/show'
= render template: '/events/show'
\
!= t '.signature'

View File

@ -3,6 +3,6 @@
= @event.reason
\
!= t '.reminder'
= render file: '/events/show'
= render template: '/events/show'
\
!= t '.signature'

View File

@ -1,12 +1,12 @@
!= t '.body', subject: @event.title, author: @current_user || t('.submitter')
:ruby
new = render file: '/events/show'
new = render template: '/events/show'
former = @event
@event = @event.paper_trail.previous_version || @event
prev = render file: '/events/show'
prev = render template: '/events/show'
@event = former
require 'differ/format/patch'

View File

@ -1,7 +1,7 @@
!= t '.body', author: @current_user
\
!= t '.reminder'
= render file: '/orgas/show'
= render template: '/orgas/show'
\
!= t '.access'
= surround '<'.html_safe, '>'.html_safe do

View File

@ -2,6 +2,6 @@
= surround '<'.html_safe, '>'.html_safe do
= moderations_url
\
= render file: '/orgas/show'
= render template: '/orgas/show'
\
!= t '.signature'

View File

@ -1,6 +1,6 @@
!= t '.body', subject: @orga.name, author: @current_user
\
!= t '.reminder'
= render file: '/orgas/show'
= render template: '/orgas/show'
\
!= t '.signature'

View File

@ -1,12 +1,12 @@
!= t '.body', subject: @orga.name, author: @current_user || t('.submitter')
:ruby
new = render file: '/orgas/show'
new = render template: '/orgas/show'
former = @orga
@orga = @orga.paper_trail.previous_version || @orga
prev = render file: '/orgas/show'
prev = render template: '/orgas/show'
@orga = former
require 'differ/format/patch'

View File

@ -11,7 +11,7 @@
%legend
%em.fa.fa-eye
= t '.preview'
= render file: '/events/show'
= render template: '/events/show'
%fieldset
%legend

View File

@ -82,7 +82,7 @@
%tr
%td.empty/
%td.note(colspan="5")
= raw note.contents
= note.contents
%em.author
= t '.posted_by',
author: "#{note.author.firstname} #{note.author.lastname}",

View File

@ -36,4 +36,4 @@
%legend
%em.fa.fa-calendar
= Event.model_name.human
= render file: '/events/show'
= render template: '/events/show'

View File

@ -25,7 +25,7 @@
= @event.to_tweet
- if @event.repeat > 0
- if @event.repeat.positive?
%fieldset
%legend
%em.fa.fa-repeat
@ -41,4 +41,4 @@
%legend
%em.fa.fa-calendar
= Event.model_name.human
= render file: '/events/show'
= render template: '/events/show'

View File

@ -3,12 +3,12 @@
%em.fa.fa-bullhorn
- else
%em.fa.fa-paperclip
=t '.title'
= t '.title'
%fieldset
%legend=t '.title'
%legend= t '.title'
= render 'form'
%fieldset
%legend=t '.event'
= render file: '/events/show'
%legend= t '.event'
= render template: '/events/show'

View File

@ -1,6 +1,6 @@
!= t '.body', author: @current_user
\
= render file: '/orgas/show'
= render template: '/orgas/show'
\
!= t '.access'
= surround '<'.html_safe, '>'.html_safe do

View File

@ -5,6 +5,6 @@
!= t '.reclamation'
\
!= t '.reminder'
= render file: '/orgas/show'
= render template: '/orgas/show'
\
!= t '.signature'

View File

@ -1,12 +1,12 @@
!= t '.body', subject: @orga.name, author: @current_user || t('.submitter')
:ruby
new = render file: '/orgas/show'
new = render template: '/orgas/show'
former = @orga
@orga = @orga.paper_trail.previous_version
prev = render file: '/orgas/show'
prev = render template: '/orgas/show'
@orga = former
require 'differ/format/patch'

View File

@ -20,4 +20,4 @@
%fieldset
%legend= Orga.model_name.human
= render file: '/orgas/show'
= render template: '/orgas/show'

View File

@ -16,4 +16,4 @@
%legend
%em.fa.fa-calendar
= Orga.model_name.human
= render file: '/orgas/show'
= render template: '/orgas/show'