diff --git a/app/models/concerns/exportable_plan.rb b/app/models/concerns/exportable_plan.rb index c55aa2f..b9254b8 100644 --- a/app/models/concerns/exportable_plan.rb +++ b/app/models/concerns/exportable_plan.rb @@ -44,7 +44,7 @@ hash = coversheet ? prepare_coversheet : {} template = Template.includes(phases: { sections: {questions: :question_format } }). joins(phases: { sections: { questions: :question_format } }). - where(id: self.template_id).first + where(id: self.template_id).order('sections.number', 'questions.number').first hash[:title] = self.title hash[:answers] = self.answers diff --git a/app/views/notes/_list.html.erb b/app/views/notes/_list.html.erb index 73132f3..1650112 100644 --- a/app/views/notes/_list.html.erb +++ b/app/views/notes/_list.html.erb @@ -8,7 +8,7 @@
@@ -57,4 +57,4 @@
<% end %> -<% end %> \ No newline at end of file +<% end %> diff --git a/app/views/notes/_show.html.erb b/app/views/notes/_show.html.erb index ea22cae..614835e 100644 --- a/app/views/notes/_show.html.erb +++ b/app/views/notes/_show.html.erb @@ -5,8 +5,8 @@
  • <%= raw note.text %>
  • - <%= "#{user.name} at #{l(note.updated_at, format: :custom)}" %> + <%= "#{user.name} at #{l(note.updated_at, format: :short)}" %>
  • -<% end %> \ No newline at end of file +<% end %> diff --git a/config/locales/fr.yml b/config/locales/fr.yml deleted file mode 100644 index 5066d5b..0000000 --- a/config/locales/fr.yml +++ /dev/null @@ -1,873 +0,0 @@ -# [+Project:+] DMPonline v4 -# [+Description:+] This file contains all the text present on DMPonline that is not being retrieve from the database. -# [+Copyright:+] Digital Curation Centre - -fr: - date: - - formats: - - # Use the strftime parameters for formats. - # When no format has been given, it uses default. - # You can provide other formats here if you like! - default: "%d-%m-%Y" - short: "%d/%m/%Y" - - long: "%d %B, %Y" - - - day_names: [dimanche, lundi, mardi, mercredi, jeudi, vendredi, samedi] - abbr_day_names: [DIM, LUN, MAR, MER, JEU, VEN, SAM] - - # Dont forget the nil at the beginning; theres no such thing as a 0th month - month_names: [~, janvier, février, mars, avril, mai, juin, juillet, août, septembre, octobre, novembre, décembre] - abbr_month_names: [~, JAN, FEV, MAR, AVR, MAI, JUN, JUL, AOU, SEP, OCT, NOV, DEC] - # Used in date_select and datetime_select. - order: - - jour - - mois - - année - - time: - formats: - default: "%a, %d %b %Y %H:%M:%S %z" - short: "%d %b %H:%M" - custom: "%d/%m/%Y %H:%M" - long: "%B %d, %Y %H:%M" -# TRANSLATION: In French commun usage, the difference between AM and PM is expressed numerically, eg. 10:00 am is 10:00 and 10:00 pm is 22:00, otherwise keeping am and pm with hours from 01 to 12 as in English is the best option. - am: "am" - pm: "pm" - - tool_title: "DMPonline" - dmponline3_text: "Version précédente de DMPonline" - dcc_name: "Digital Curation Centre" - welcome_title: "Bienvenue !" - welcome_text: "

    DMPonline est un développement du Digital Curation Centre (Centre de curation numérique britannique - DCC) pour vous aider dans la rédaction de plans de gestion de données, ou DMP.

    " - screencast_text: "Vidéo en ligne sur lutilisation de DMPonline" - screencast_error_text: "La balise