fix archive widget title
This commit is contained in:
parent
b52e6b979b
commit
b33fe549da
|
@ -9,6 +9,7 @@ class Panel::Archive::Widget::ArchiveFilesController < OrbitWidgetController
|
|||
def index
|
||||
|
||||
@part = PagePart.find(params[:part_id])
|
||||
@title = @part.title_translations[I18n.locale.to_s]
|
||||
|
||||
if @part.widget_data_count
|
||||
@page_num = @part.widget_data_count
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
<% # encoding: utf-8 %>
|
||||
|
||||
<% if @title %>
|
||||
<h2 class="h2"><%= @title %></h2>
|
||||
<% end %>
|
||||
|
||||
<% if @widget_style == '1' %>
|
||||
|
||||
|
|
Loading…
Reference in New Issue