fix link widget title

This commit is contained in:
thomaschen authored and saurabhbhatia committed 2013-12-13 15:30:04 +08:00
1 parent 445a13c645
commit bd154c9cab
2 files changed
+7 -1

No files matched your search

@@ -11,7 +11,8 @@ class Panel::WebResource::Widget::WebLinksController < OrbitWidgetController
def index
@part = PagePart.find(params[:part_id])
@title = @part.title_translations[I18n.locale.to_s]
if @part.widget_data_count
@page_num = @part.widget_data_count
else
@@ -1,3 +1,8 @@
<% # encoding: utf-8 %>
<% if @title %>
<h2 class="h2"><%= @title %></h2>
<% end %>
<div class="o-links">
<div class="o-links-content">
<ul>