fix archive widget title

This commit is contained in:
thomaschen authored and saurabhbhatia committed 2013-12-13 15:29:46 +08:00
1 parent b52e6b979b
commit b33fe549da
2 files changed
+6 -3

No files matched your search

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