fix link widget title

This commit is contained in:
thomaschen 2013-12-13 11:53:32 +08:00 committed by saurabhbhatia
parent 445a13c645
commit bd154c9cab
2 changed files with 7 additions and 1 deletions

View File

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

View File

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