Changes for dat and time format

Impression bug when some i18n missing in impressionable object
JS bug in ad_banner edit title
This commit is contained in:
Christophe Vilayphiou committed 2012-05-18 19:42:36 +08:00
1 parent e1bd5d8c8d
commit 4d33c7a56d
24 files changed
+57 -46

No files matched your search

@@ -160,13 +160,13 @@ class Bulletin
protected
def set_key
if title.new_record?
if title && title.new_record?
title.key = 'title'
end
if subtitle.new_record?
if subtitle && subtitle.new_record?
subtitle.key = 'subtitle'
end
if text.new_record?
if text && text.new_record?
text.key = 'text'
end
end
@@ -29,10 +29,10 @@ class BulletinFile
protected
def set_key
if filetitle.new_record?
if filetitle && filetitle.new_record?
filetitle.key = 'filetitle'
end
if description.new_record?
if description && description.new_record?
description.key = 'description'
end
end
@@ -60,8 +60,8 @@
</ul>
</div>
</td>
<td><%= bulletin.postdate %></td>
<td><%= (bulletin.deadline) ? bulletin.deadline : t('bulletin.no_deadline') %></td>
<td><%= display_date_time(bulletin.postdate) %></td>
<td><%= (bulletin.deadline) ? display_date_time(bulletin.deadline ): t('bulletin.no_deadline') %></td>
<td>
<div class="label-group">
<div class="label-td">
@@ -5,7 +5,7 @@
</li>
<li>
<b><%= t('announcement.postdate') %></b>
<%= @bulletin.postdate %>
<%= display_date_time(@bulletin.postdate) %>
</li>
<li>
<b><%= t('announcement.title') %></b>
@@ -42,7 +42,7 @@
</li>
<li>
<b><%= t('announcement.最後修改時間') %></b>
<%= @bulletin.updated_at %>
<%= display_date(@bulletin.updated_at) %>
</li>
@@ -22,7 +22,7 @@
<td><%= link_to post.title[I18n.locale], panel_announcement_front_end_bulletin_path(post, :category_id => post.bulletin_category_id) %>
<%#= link_to post.title, panel_announcement_back_end_bulletin_path(post) %>
</td>
<td><%= post.postdate %></td>
<td><%= display_date_time(post.postdate) %></td>
</tr>
<% end %>
@@ -2,10 +2,11 @@
<h1 class="h1"><%= @bulletin.title[I18n.locale] %></h1>
<div class="info">
<div class="info1">
<span class="date"><%= @bulletin.postdate %></span>
&nbsp;|&nbsp;
<a href="" class="unit"><%= User.find(@bulletin.create_user_id).sub_roles.collect{|t| t.key}.join(" ") rescue '' %></a>
<span><%= dislpay_view_count(@bulletin) %></span>
<span class="pull-right"><%= dislpay_view_count(@bulletin) %></span>
<span class="date"><%= display_date_time(@bulletin.postdate) %></span>
<% unit = User.find(@bulletin.create_user_id).sub_roles.collect{|t| t.key}.join(" ") rescue nil %>
<%= " | " if unit %>
<a href="" class="unit"><%= unit %></a>
</div>
</div>
<div class="news_image">
@@ -15,7 +15,7 @@
<td><%= post.bulletin_category.i18n_variable[I18n.locale] rescue nil %></td>
<td><%= link_to post.title[I18n.locale], panel_announcement_front_end_bulletin_path(post, :category_id => post.bulletin_category_id) %>
</td>
<td><%= post.postdate %></td>
<td><%= display_date_time(post.postdate) %></td>
</tr>
<% end %>