widget link fixed on homepage
This commit is contained in:
parent
eb8495bcbd
commit
1b5f6a79c7
|
@ -8,10 +8,12 @@
|
||||||
<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| %>
|
||||||
<li>
|
<% if !web_link.title.empty? %>
|
||||||
<%= link_to web_link.title, web_link.url, {:target => '_blank', :title => web_link.title, :class=>"o-links-title"} %>
|
<li>
|
||||||
<div class="o-links-description"><%= web_link.context %></div>
|
<%= link_to web_link.title, web_link.url, {:target => '_blank', :title => web_link.title, :class=>"o-links-title"} %>
|
||||||
</li>
|
<div class="o-links-description"><%= web_link.context %></div>
|
||||||
|
</li>
|
||||||
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<ul>
|
<ul>
|
||||||
<% @web_links.each do |widget| -%>
|
<% @web_links.each do |widget| -%>
|
||||||
<li><%= link_to widget.title, widget.url, {:target => '_blank', :title => widget.title} %></li>
|
<li><%= link_to widget.title, widget.url, {:target => '_blank', :title => widget.title} %></li>
|
||||||
<% end -%>
|
<% end -%>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue