external links and link widget fixed for development
This commit is contained in:
parent
a067bcd304
commit
58fb2d1c73
|
@ -73,7 +73,7 @@ class FrontController < ApplicationController
|
|||
res << " active" if (current_page.id.eql?(page.id) || current_page.descendant_of?(page))
|
||||
res << "'>"
|
||||
root = "/"
|
||||
res << "<a href='#{(page.class.to_s.eql?('Page') ? root + page.path : page.url)}'><span>#{page.title}</span></a>"
|
||||
res << "<a href='#{(page.class.to_s.eql?('Page') ? root + page.path : page.url)}' target=#{(page.class.to_s.eql?('Page') ? '_self' : '_blank')} ><span>#{page.title}</span></a>"
|
||||
if page.visible_children.size > 0 && current < menu.levels
|
||||
res << "<span class='dot'></span>"
|
||||
res << menu_level(page, current_page, current + 1, menu)
|
||||
|
|
|
@ -10,11 +10,13 @@
|
|||
<ul>
|
||||
|
||||
<% wlcg["web_links"].each do |post| %>
|
||||
<li>
|
||||
<%= link_to post["title"], post["url"], {:target => '_blank', :title => post["title"], :class=>"o-links-title"} %>
|
||||
<% if !post["is_hot"].blank? %><span class="o-links-hot"><%= t('hot')%></span><% end %>
|
||||
<div class="o-links-description"><%= post["context"] %></div>
|
||||
</li>
|
||||
<% if !web_link.title.empty? %>
|
||||
<li>
|
||||
<%= link_to post["title"], post["url"], {:target => '_blank', :title => post["title"], :class=>"o-links-title"} %>
|
||||
<% if !post["is_hot"].blank? %><span class="o-links-hot"><%= t('hot')%></span><% end %>
|
||||
<div class="o-links-description"><%= post["context"] %></div>
|
||||
</li>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
</ul>
|
||||
|
|
Reference in New Issue