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
@@ -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