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