Fix Gallery widget title
This commit is contained in:
parent
b33fe549da
commit
445a13c645
|
@ -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>
|
||||
|
|
Reference in New Issue