Simpler linuxfr digest

remotes/origin/master
echarp 4 years ago
parent a40c930ae2
commit 995efe9034
  1. 9
      app/views/digests/markdown.html.haml

@ -2,8 +2,7 @@
- description = capture_haml do
= t '.week', count: @events.count
\
'
- second_part = capture_haml do
- @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}
@ -14,7 +13,7 @@
- if event.url.present?
* #{Event.human_attribute_name :url}: #{event.url}
* #{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
@ -54,10 +53,6 @@
%label(for='title') Titre
%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
%label(for='description') Contenu
%textarea#description(name='news[wiki_body]')= description

Loading…
Cancel
Save