mirror of
https://github.com/CodeforLeipzig/stadtratmonitor.git
synced 2024-12-22 15:43:14 +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'
|
||||
gem 'rails'
|
||||
gem 'rails-i18n'
|
||||
# Use sqlite3 as the database for Active Record
|
||||
gem 'sqlite3'
|
||||
gem 'kaminari'
|
||||
|
|
|
@ -134,6 +134,9 @@ GEM
|
|||
rails-deprecated_sanitizer (>= 1.0.1)
|
||||
rails-html-sanitizer (1.0.2)
|
||||
loofah (~> 2.0)
|
||||
rails-i18n (4.0.4)
|
||||
i18n (~> 0.6)
|
||||
railties (~> 4.0)
|
||||
railties (4.2.1)
|
||||
actionpack (= 4.2.1)
|
||||
activesupport (= 4.2.1)
|
||||
|
@ -201,6 +204,7 @@ DEPENDENCIES
|
|||
omniauth-browserid
|
||||
pry
|
||||
rails
|
||||
rails-i18n
|
||||
sass-rails
|
||||
sdoc (~> 0.4.0)
|
||||
slim-rails
|
||||
|
|
|
@ -17,7 +17,7 @@ div
|
|||
'
|
||||
small = doc.originator
|
||||
'
|
||||
small = doc.published_at
|
||||
small = l doc.published_at.to_date
|
||||
= link_to doc.url, target: '_blank' do
|
||||
div = doc.name
|
||||
|
||||
|
|
Loading…
Reference in a new issue