Fix Gallery widget title

This commit is contained in:
Bernie Chiu authored and saurabhbhatia committed 2013-12-13 15:29:55 +08:00
1 parent b33fe549da
commit 445a13c645
2 files changed
+4

No files matched your search

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