Fix Gallery widget title

This commit is contained in:
Bernie Chiu 2013-12-13 11:53:40 +08:00 committed by saurabhbhatia
parent b33fe549da
commit 445a13c645
2 changed files with 4 additions and 0 deletions

View File

@ -2,6 +2,7 @@ class Panel::Gallery::Widget::AlbumsController < OrbitWidgetController
def widget1
@part = PagePart.find(params[:part_id])
@title = @part.title_translations[I18n.locale.to_s]
vertical = @part.widget_options['vertical'].to_i rescue 0
horizontal = @part.widget_options['horizontal'].to_i rescue 0

View File

@ -2,6 +2,9 @@
<%# content_for :page_specific_javascript do %>
<%#= javascript_include_tag "cycle" %>
<%# end %>
<% if @title %>
<h2 class="h2"><%= @title %></h2>
<% end %>
<div class="four columns">
<div class="widget_gallery w1 <%= @class %>">
<ul>