Merge pull request #240 from abf/rosa-build:add_localization_to_datetime

Add datetime localization in issues & pull requests
This commit is contained in:
avokhmin 2013-07-26 19:05:59 +04:00
commit 897a78191c
3 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@
.image
=image_tag(avatar_url(@issue.user, :medium), :alt => 'avatar') if @issue.user
.created
%span=@issue.created_at.to_s(:long)
%span= I18n.l(@issue.created_at, :format => :long)
- if @issue.user
%span= t('layout.by')
%span.name=link_to(@issue.user.fullname, user_path(@issue.user))

View File

@ -10,7 +10,7 @@
-prefix = @project ? '' : "<span style=\"color: #999;\">#{issue.project.name}</span>: "
="#{prefix} #{issue.title}".html_safe
.smalltext
=issue.send(@sort == :created ? :created_at : :updated_at).to_s(:long)
=I18n.l(issue.send(@sort == :created ? :created_at : :updated_at), :format => :long)
=t("layout.by") if issue.user
=link_to(issue.user.uname, user_path(issue.user)) if issue.user
-issue.labels.each do |label|

View File

@ -4,6 +4,6 @@
.state=t('layout.issues.status.closed')
.text
.avatar= image_tag(avatar_url(@issue.closer), :alt => 'avatar')
.name="#{@issue.closer.fullname} #{t('layout.issues.at')} #{@issue.closed_at.to_s(:long)}"
.name="#{@issue.closer.fullname} #{t('layout.issues.at')} #{I18n.l(@issue.closed_at, :format => :long)}"
.both
%br/