Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
agenda-libre
agenda-libre-ruby
Commits
16f7a6ab
Commit
16f7a6ab
authored
Feb 20, 2016
by
echarp
Browse files
Small evolution to the linuxfr form
parent
55b5545a
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/views/digests/markdown.html.haml
View file @
16f7a6ab
...
...
@@ -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]'
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment