From 16f7a6abf7e39e2c23ce57c7badd1be3f9972adb Mon Sep 17 00:00:00 2001 From: echarp Date: Sat, 20 Feb 2016 17:12:15 +0100 Subject: [PATCH] Small evolution to the linuxfr form --- app/views/digests/markdown.html.haml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/views/digests/markdown.html.haml b/app/views/digests/markdown.html.haml index e84021ee..3a030995 100644 --- a/app/views/digests/markdown.html.haml +++ b/app/views/digests/markdown.html.haml @@ -56,6 +56,7 @@ %form(action='https://linuxfr.org/news' method='post' accept-charset='UTF-8') %input(type='hidden' name='utf8' value='✓') + %input(type='hidden' name='news[cc_licensed]' value='1') %input(type='hidden' name='news[section_id]' value='9') %input(type='hidden' name='tags' value='agenda_du_libre') %input(type='hidden' name='commit' value='Prévisualiser') @@ -66,7 +67,7 @@ .field.authenticity_token %label(for='token') Jeton - %input#token(type='text' name='authenticity_token') + %input#token(type='text' name='authenticity_token' autocomplete='off') .field.description %label(for='description') Contenu @@ -111,7 +112,7 @@ %input(type='hidden' name='news[links_attributes][5][title]' value='Agenda de la semaine précédente') - - pre = 'https://linuxfr.org/news/agenda-pour-la-semaine-' + - pre = 'https://linuxfr.org/news/agenda-du-libre-pour-la-semaine-' - pre += "#{(@week - 1.week).cweek}-de-l-annee-#{(@week - 1.week).year}" %input{ type: 'hidden', name: 'news[links_attributes][5][url]', value: pre } %input(type='hidden' name='news[links_attributes][5][lang]'