Simpler linuxfr digest
This commit is contained in:
parent
a40c930ae2
commit
995efe9034
@ -2,8 +2,7 @@
|
|||||||
|
|
||||||
- description = capture_haml do
|
- description = capture_haml do
|
||||||
= t '.week', count: @events.count
|
= t '.week', count: @events.count
|
||||||
\
|
|
||||||
'
|
|
||||||
- second_part = capture_haml do
|
- second_part = capture_haml do
|
||||||
- @events.sort_by(&:start_time).each do |event|
|
- @events.sort_by(&:start_time).each do |event|
|
||||||
[#{event.region.region.try(:code) || event.region.try(:code)} #{event.city}] [#{event.title}](#{event_url event}) - #{display_date event}
|
[#{event.region.region.try(:code) || event.region.try(:code)} #{event.city}] [#{event.title}](#{event_url event}) - #{display_date event}
|
||||||
@ -14,7 +13,7 @@
|
|||||||
- if event.url.present?
|
- if event.url.present?
|
||||||
* #{Event.human_attribute_name :url}: #{event.url}
|
* #{Event.human_attribute_name :url}: #{event.url}
|
||||||
* #{Event.human_attribute_name :tags}:
|
* #{Event.human_attribute_name :tags}:
|
||||||
#{event.tags.collect { |tag| "[#{tag}](#{tag_url tag.name})" }.join ', '}
|
= event.tags.collect { |tag| "[#{tag}](#{tag_url tag.name})" }.join ', '
|
||||||
\
|
\
|
||||||
|
|
||||||
%h1= title
|
%h1= title
|
||||||
@ -54,10 +53,6 @@
|
|||||||
%label(for='title') Titre
|
%label(for='title') Titre
|
||||||
%input#title{ type: 'text', name: 'news[title]', value: title }
|
%input#title{ type: 'text', name: 'news[title]', value: title }
|
||||||
|
|
||||||
.field.authenticity_token
|
|
||||||
%label(for='token') Jeton
|
|
||||||
%input#token(type='text' name='authenticity_token' autocomplete='off')
|
|
||||||
|
|
||||||
.field.description
|
.field.description
|
||||||
%label(for='description') Contenu
|
%label(for='description') Contenu
|
||||||
%textarea#description(name='news[wiki_body]')= description
|
%textarea#description(name='news[wiki_body]')= description
|
||||||
|
Loading…
Reference in New Issue
Block a user