Fix link frontend and gallery json
This commit is contained in:
parent
3c49a6eeae
commit
93424e1972
|
@ -3,7 +3,7 @@ class Panel::Gallery::BackEnd::AlbumsController < OrbitBackendController
|
||||||
|
|
||||||
# before_filter :force_order_for_user, :except => [:index,:get_album_json,:get_imgs_json]
|
# before_filter :force_order_for_user, :except => [:index,:get_album_json,:get_imgs_json]
|
||||||
|
|
||||||
before_filter :force_order_for_visitor,:only=>[:index,:show,:get_album_json,:get_imgs_json,:get_albums,:imgs]
|
before_filter :force_order_for_visitor,:only=>[:index,:show,:get_albums,:imgs]
|
||||||
before_filter :force_order_for_user,:except => [:index,:show,:get_album_json,:get_imgs_json,:get_albums,:imgs]
|
before_filter :force_order_for_user,:except => [:index,:show,:get_album_json,:get_imgs_json,:get_albums,:imgs]
|
||||||
before_filter :for_app_sub_manager,:except => [:index,:show,:get_album_json,:get_imgs_json,:get_albums,:imgs]
|
before_filter :for_app_sub_manager,:except => [:index,:show,:get_album_json,:get_imgs_json,:get_albums,:imgs]
|
||||||
# before_filter lambda
|
# before_filter lambda
|
||||||
|
|
|
@ -10,11 +10,13 @@
|
||||||
<div class="o-links-list">
|
<div class="o-links-list">
|
||||||
<ul>
|
<ul>
|
||||||
<% web_links.page(params[:page_main]).per(@page_num).each do |web_link| %>
|
<% web_links.page(params[:page_main]).per(@page_num).each do |web_link| %>
|
||||||
|
<% if !web_link.title.blank? %>
|
||||||
<li>
|
<li>
|
||||||
<%= link_to web_link.title, web_link.url, {:target => '_blank', :title => web_link.title, :class=>"o-links-title"} %>
|
<%= link_to web_link.title, web_link.url, {:target => '_blank', :title => web_link.title, :class=>"o-links-title"} %>
|
||||||
<div class="o-links-description"><%= web_link.context %></div>
|
<div class="o-links-description"><%= web_link.context %></div>
|
||||||
</li>
|
</li>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
<% end %>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
|
|
Loading…
Reference in New Issue