fix archive widget title

This commit is contained in:
thomaschen 2013-12-13 11:35:45 +08:00 committed by saurabhbhatia
parent b52e6b979b
commit b33fe549da
2 changed files with 6 additions and 3 deletions

View File

@ -8,9 +8,10 @@ class Panel::Archive::Widget::ArchiveFilesController < OrbitWidgetController
def index
@part = PagePart.find(params[:part_id])
@part = PagePart.find(params[:part_id])
@title = @part.title_translations[I18n.locale.to_s]
if @part.widget_data_count
if @part.widget_data_count
@page_num = @part.widget_data_count
else
@page_num = 4

View File

@ -1,5 +1,7 @@
<% # encoding: utf-8 %>
<% if @title %>
<h2 class="h2"><%= @title %></h2>
<% end %>
<% if @widget_style == '1' %>