mirror of
https://github.com/CodeforLeipzig/stadtratmonitor.git
synced 2024-12-22 23:53:15 +01:00
Localize date format via rails-i18n
This commit is contained in:
parent
b1197df490
commit
ff58856c99
3 changed files with 6 additions and 1 deletions
1
Gemfile
1
Gemfile
|
@ -3,6 +3,7 @@ source 'https://rubygems.org'
|
||||||
|
|
||||||
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
|
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
|
||||||
gem 'rails'
|
gem 'rails'
|
||||||
|
gem 'rails-i18n'
|
||||||
# Use sqlite3 as the database for Active Record
|
# Use sqlite3 as the database for Active Record
|
||||||
gem 'sqlite3'
|
gem 'sqlite3'
|
||||||
gem 'kaminari'
|
gem 'kaminari'
|
||||||
|
|
|
@ -134,6 +134,9 @@ GEM
|
||||||
rails-deprecated_sanitizer (>= 1.0.1)
|
rails-deprecated_sanitizer (>= 1.0.1)
|
||||||
rails-html-sanitizer (1.0.2)
|
rails-html-sanitizer (1.0.2)
|
||||||
loofah (~> 2.0)
|
loofah (~> 2.0)
|
||||||
|
rails-i18n (4.0.4)
|
||||||
|
i18n (~> 0.6)
|
||||||
|
railties (~> 4.0)
|
||||||
railties (4.2.1)
|
railties (4.2.1)
|
||||||
actionpack (= 4.2.1)
|
actionpack (= 4.2.1)
|
||||||
activesupport (= 4.2.1)
|
activesupport (= 4.2.1)
|
||||||
|
@ -201,6 +204,7 @@ DEPENDENCIES
|
||||||
omniauth-browserid
|
omniauth-browserid
|
||||||
pry
|
pry
|
||||||
rails
|
rails
|
||||||
|
rails-i18n
|
||||||
sass-rails
|
sass-rails
|
||||||
sdoc (~> 0.4.0)
|
sdoc (~> 0.4.0)
|
||||||
slim-rails
|
slim-rails
|
||||||
|
|
|
@ -17,7 +17,7 @@ div
|
||||||
'
|
'
|
||||||
small = doc.originator
|
small = doc.originator
|
||||||
'
|
'
|
||||||
small = doc.published_at
|
small = l doc.published_at.to_date
|
||||||
= link_to doc.url, target: '_blank' do
|
= link_to doc.url, target: '_blank' do
|
||||||
div = doc.name
|
div = doc.name
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue