more button fix and also new way to select more page.

This commit is contained in:
harrybomrah authored and saurabhbhatia committed 2013-11-15 15:13:58 +08:00
1 parent 7028390248
commit e129b25554
12 files changed
+50 -14

No files matched your search

@@ -11,7 +11,6 @@ class Panel::WebResource::Widget::WebLinksController < OrbitWidgetController
def index
@part = PagePart.find(params[:part_id])
if @part.widget_data_count
@page_num = @part.widget_data_count
else
@@ -64,7 +63,7 @@ class Panel::WebResource::Widget::WebLinksController < OrbitWidgetController
@web_link_datas << { "title" => wlcg.title, "web_links" => web_link_datas } if !@web_links.blank?
end
@more_url = Page.find(@part.more_link_page_id).path
end
def get_categorys
@@ -30,9 +30,5 @@
</div>
<div class="pull_right">
<% if !params[:category_id].blank? %>
<%= link_to t(:more_plus), panel_web_resource_front_end_web_links_path(:category_id => @part.category) %>
<% else %>
<%= link_to t(:more_plus), panel_web_resource_front_end_web_links_path %>
<% end %>
<%= link_to t(:more_plus), "/"+@more_url %>
</div>