Proof i18n_variable for categories
This commit is contained in:
1 parent
a2637008e0
commit
8ad7f70822
17 files changed
+11
-17
No files matched your search
-1
@@ -55,7 +55,6 @@ class Panel::Announcement::BackEnd::BulletinCategorysController < OrbitBackendCo
|
||||
# GET /bulletins/1/edit
|
||||
def edit
|
||||
@bulletin_category = BulletinCategory.find(params[:id])
|
||||
@i18n_variable = @bulletin_category.i18n_variable
|
||||
|
||||
@url = panel_announcement_back_end_bulletin_category_path(@bulletin_category)
|
||||
|
||||
|
||||
+1
-1
@@ -28,7 +28,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td><%= bulletin.bulletin_category.i18n_variable[I18n.locale] %></td>
|
||||
<td><%= bulletin.bulletin_category.i18n_variable[I18n.locale] rescue nil %></td>
|
||||
<td>
|
||||
<%= link_to bulletin.title[I18n.locale], panel_announcement_front_end_bulletin_path(bulletin, :category_id => bulletin.bulletin_category.id) rescue ''%>
|
||||
|
||||
|
||||
Vendored
+1
-1
@@ -1,7 +1,7 @@
|
||||
<ul>
|
||||
<li>
|
||||
<b><%= t('announcement.category') %></b>
|
||||
<%= @bulletin.bulletin_category.i18n_variable[I18n.locale] %>
|
||||
<%= @bulletin.bulletin_category.i18n_variable[I18n.locale] rescue nil %>
|
||||
</li>
|
||||
<li>
|
||||
<b><%= t('announcement.postdate') %></b>
|
||||
|
||||
vendor/built_in_modules/announcement/app/views/panel/announcement/front_end/bulletins/index.html.erb
Vendored
+1
-1
@@ -18,7 +18,7 @@
|
||||
|
||||
<% @bulletins.each do |post| %>
|
||||
<tr>
|
||||
<td><%= post.bulletin_category.i18n_variable[I18n.locale] %></td>
|
||||
<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) %>
|
||||
<%#= link_to post.title, panel_announcement_back_end_bulletin_path(post) %>
|
||||
</td>
|
||||
|
||||
Vendored
+1
-1
@@ -12,7 +12,7 @@
|
||||
|
||||
<% @bulletins.each do |post| %>
|
||||
<tr>
|
||||
<td><%= post.bulletin_category.i18n_variable[I18n.locale] %></td>
|
||||
<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>
|
||||
|
||||
-1
@@ -56,7 +56,6 @@ class Panel::News::BackEnd::NewsBulletinCategorysController < OrbitBackendContro
|
||||
# GET /news_bulletins/1/edit
|
||||
def edit
|
||||
@news_bulletin_category = NewsBulletinCategory.find(params[:id])
|
||||
@i18n_variable = @news_bulletin_category.i18n_variable
|
||||
|
||||
@url = panel_news_back_end_news_bulletin_category_path(@news_bulletin_category)
|
||||
|
||||
|
||||
Vendored
+1
-1
@@ -28,7 +28,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td><%= news_bulletin.news_bulletin_category.i18n_variable[I18n.locale] %></td>
|
||||
<td><%= news_bulletin.news_bulletin_category.i18n_variable[I18n.locale] rescue nil %></td>
|
||||
<td>
|
||||
<%= link_to news_bulletin.title[I18n.locale], panel_news_front_end_news_bulletin_path(news_bulletin, :category_id => news_bulletin.news_bulletin_category.id) rescue ''%>
|
||||
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
<ul>
|
||||
<li>
|
||||
<b><%= t('news.category') %></b>
|
||||
<%= @news_bulletin.news_bulletin_category.i18n_variable[I18n.locale] %>
|
||||
<%= @news_bulletin.news_bulletin_category.i18n_variable[I18n.locale] rescue nil %>
|
||||
</li>
|
||||
<li>
|
||||
<b><%= t('news.postdate') %></b>
|
||||
|
||||
-1
@@ -38,7 +38,6 @@ class Panel::WebResource::BackEnd::WebLinkCategorysController < OrbitBackendCont
|
||||
# GET /web_links/1/edit
|
||||
def edit
|
||||
@web_link_category = WebLinkCategory.find(params[:id])
|
||||
@i18n_variable = @web_link_category.i18n_variable
|
||||
|
||||
@url = panel_web_resource_back_end_web_link_category_path(@web_link_category)
|
||||
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td><%= web_link.web_link_category.i18n_variable[I18n.locale] %></td>
|
||||
<td><%= web_link.web_link_category.i18n_variable[I18n.locale] rescue nil %></td>
|
||||
<td>
|
||||
<%= link_to web_link.name[I18n.locale], panel_web_resource_back_end_web_link_path(web_link) %>
|
||||
<div class="quick-edit">
|
||||
|
||||
Vendored
+1
-1
@@ -9,7 +9,7 @@
|
||||
<ul>
|
||||
<li>
|
||||
<b><%= t('announcement.category') %></b>
|
||||
<%= @bulletin.bulletin_category.i18n_variable[I18n.locale] %>
|
||||
<%= @bulletin.bulletin_category.i18n_variable[I18n.locale] rescue nil %>
|
||||
</li>
|
||||
<li>
|
||||
<b><%= t('announcement.postdate') %></b>
|
||||
|
||||
vendor/built_in_modules/web_resource/app/views/panel/web_resource/front_end/web_links/index.html.erb
Vendored
+1
-1
@@ -15,7 +15,7 @@
|
||||
|
||||
<% @web_links.each do |post| %>
|
||||
<tr>
|
||||
<td><%= post.web_link_category.i18n_variable[I18n.locale] %></td>
|
||||
<td><%= post.web_link_category.i18n_variable[I18n.locale] rescue nil %></td>
|
||||
<td>
|
||||
<%#= link_to post.name[I18n.locale], panel_web_resource_front_end_web_link_path(post) %>
|
||||
<%= link_to post.name[I18n.locale], post.url, {:target => '_blank', :title => post.name[I18n.locale]} %>
|
||||
|
||||
Vendored
+1
-1
@@ -9,7 +9,7 @@
|
||||
<ul>
|
||||
<li>
|
||||
<b><%= t('announcement.category') %></b>
|
||||
<%= @bulletin.bulletin_category.i18n_variable[I18n.locale] %>
|
||||
<%= @bulletin.bulletin_category.i18n_variable[I18n.locale] rescue nil %>
|
||||
</li>
|
||||
<li>
|
||||
<b><%= t('announcement.postdate') %></b>
|
||||
|
||||
Vendored
+1
-1
@@ -14,7 +14,7 @@
|
||||
</tr>
|
||||
<% @web_links.each do |post| %>
|
||||
<tr>
|
||||
<td><%= post.web_link_category.i18n_variable[I18n.locale] %></td>
|
||||
<td><%= post.web_link_category.i18n_variable[I18n.locale] rescue nil %></td>
|
||||
<td>
|
||||
<%= link_to post.name[I18n.locale], post.url, {:target => '_blank', :title => post.name[I18n.locale]} %>
|
||||
</td>
|
||||
|
||||
Reference in new issue
Block a user