Fix announcement for i18n_variable removal
This commit is contained in:
parent
b9cf5263f6
commit
875fad848c
|
@ -21,7 +21,7 @@ class BulletinCategory
|
||||||
has_many :bulletins
|
has_many :bulletins
|
||||||
|
|
||||||
def pp_object
|
def pp_object
|
||||||
name
|
title
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.from_id(id)
|
def self.from_id(id)
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
<%= f.fields_for :title_translations do |f| %>
|
<%= f.fields_for :title_translations do |f| %>
|
||||||
<% @site_valid_locales.each do |locale| %>
|
<% @site_valid_locales.each do |locale| %>
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
<%= label_tag "link-#{locale}", "Name-#{I18nVariable.from_locale(locale)}" %>
|
<%= label_tag "link-#{locale}", "Name-#{I18nVariable.from_locale(locale)}", :class => 'control-label' %>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<%#= f.text_field locale, :class => 'input-xxlarge' %>
|
<%#= f.text_field locale, :class => 'input-xxlarge' %>
|
||||||
<%= f.text_field locale, :class => 'control-label', :value => (@bulletin_link.title_translations[locale] rescue nil) %>
|
<%= f.text_field locale, :class => 'control-label', :value => (@bulletin_link.title_translations[locale] rescue nil) %>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
|
|
||||||
<tr id="<%= dom_id list_bulletin_file %>">
|
<tr id="<%= dom_id list_bulletin_file %>">
|
||||||
<td><%= list_bulletin_file.file.file ? ( link_to list_bulletin_file.title_translations['zh_tw'], list_bulletin_file.file.url, {:target => '_blank', :title => list_bulletin_file.description.zh_tw} ) : list_bulletin_file.title_translations['zh_tw'] %></td>
|
<td><%= list_bulletin_file.file.file ? ( link_to list_bulletin_file.title_translations['zh_tw'], list_bulletin_file.file.url, {:target => '_blank', :title => list_bulletin_file.description_translations['zh_tw']} ) : list_bulletin_file.title_translations['zh_tw'] %></td>
|
||||||
<td><%= list_bulletin_file.file.file ? ( link_to list_bulletin_file.title_translations['en'], list_bulletin_file.file.url, {:target => '_blank', :title => list_bulletin_file.description.en} ) : list_bulletin_file.title_translations['zh_tw'] %></td>
|
<td><%= list_bulletin_file.file.file ? ( link_to list_bulletin_file.title_translations['en'], list_bulletin_file.file.url, {:target => '_blank', :title => list_bulletin_file.description_translations['en']} ) : list_bulletin_file.title_translations['zh_tw'] %></td>
|
||||||
<td>
|
<td>
|
||||||
<a href="<%= panel_announcement_back_end_bulletin_file_quick_edit_path(list_bulletin_file) %>#modal-file" data-toggle="modal" data-remote="true" class="action"><i class="icon-pencil"></i></a>
|
<a href="<%= panel_announcement_back_end_bulletin_file_quick_edit_path(list_bulletin_file) %>#modal-file" data-toggle="modal" data-remote="true" class="action"><i class="icon-pencil"></i></a>
|
||||||
<span class="action">
|
<span class="action">
|
||||||
|
|
Loading…
Reference in New Issue