Automatic tags addition for the linuxfr submission
This commit is contained in:
parent
71a5f2feda
commit
a51e7cf8fc
@ -57,6 +57,7 @@
|
||||
%form(action='https://linuxfr.org/news' method='post' accept-charset='UTF-8')
|
||||
%input(type='hidden' name='utf8' value='✓')
|
||||
%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')
|
||||
|
||||
.field.title
|
||||
@ -109,7 +110,7 @@
|
||||
value='fr' size='2')
|
||||
|
||||
%input(type='hidden' name='news[links_attributes][5][title]'
|
||||
value='Agenda de la semaine précédante')
|
||||
value='Agenda de la semaine précédente')
|
||||
- pre = 'https://linuxfr.org/news/agenda-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 }
|
||||
|
Loading…
Reference in New Issue
Block a user