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,6 +11,7 @@ class Panel::WebResource::Widget::WebLinksController < OrbitWidgetController
def index def index
@part = PagePart.find(params[:part_id]) @part = PagePart.find(params[:part_id])
@title = @part.title_translations[I18n.locale.to_s]
if @part.widget_data_count if @part.widget_data_count
@page_num = @part.widget_data_count @page_num = @part.widget_data_count

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">
<div class="o-links-content"> <div class="o-links-content">
<ul> <ul>