fix archive widget title
This commit is contained in:
		
							parent
							
								
									b52e6b979b
								
							
						
					
					
						commit
						b33fe549da
					
				|  | @ -8,9 +8,10 @@ class Panel::Archive::Widget::ArchiveFilesController < OrbitWidgetController | |||
| 
 | ||||
|   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 | ||||
| 	  else | ||||
| 		  @page_num = 4 | ||||
|  |  | |||
|  | @ -1,5 +1,7 @@ | |||
| <% # encoding: utf-8 %> | ||||
| 
 | ||||
| <% if @title %> | ||||
| 	<h2 class="h2"><%= @title %></h2> | ||||
| <% end %> | ||||
| 
 | ||||
| <% if @widget_style == '1' %> | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue