fix link widget title
This commit is contained in:
parent
445a13c645
commit
bd154c9cab
|
@ -11,6 +11,7 @@ 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
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue