Add link to default widget (temporary)
This commit is contained in:
parent
529197eb8c
commit
736bda0679
|
@ -13,6 +13,8 @@
|
||||||
<% @fields.each do |field|%>
|
<% @fields.each do |field|%>
|
||||||
<% if field[0] == "bulletin_category"%>
|
<% if field[0] == "bulletin_category"%>
|
||||||
<td><%= content_tag(:span,row_data.send(field[0]).title,:class=>field[1])%></td>
|
<td><%= content_tag(:span,row_data.send(field[0]).title,:class=>field[1])%></td>
|
||||||
|
<% elsif field[0] == "title" %>
|
||||||
|
<td><%= content_tag(:span, link_to(row_data.send(field[0]), panel_announcement_front_end_bulletin_path(row_data)), :class=>field[1]) %></td>
|
||||||
<% else %>
|
<% else %>
|
||||||
<td><%= content_tag(:span,row_data.send(field[0]),:class=>field[1])%></td>
|
<td><%= content_tag(:span,row_data.send(field[0]),:class=>field[1])%></td>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
|
@ -9,6 +9,8 @@
|
||||||
<% @fields.each do |field|%>
|
<% @fields.each do |field|%>
|
||||||
<% if field[0] == "bulletin_category"%>
|
<% if field[0] == "bulletin_category"%>
|
||||||
<%= content_tag(:span,row_data.send(field[0]).title,:class=>field[1])%>
|
<%= content_tag(:span,row_data.send(field[0]).title,:class=>field[1])%>
|
||||||
|
<% elsif field[0] == "title" %>
|
||||||
|
<%= content_tag(:span, link_to(row_data.send(field[0]), panel_announcement_front_end_bulletin_path(row_data)), :class=>field[1]) %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<%= content_tag(:span,row_data.send(field[0]),:class=>field[1])%>
|
<%= content_tag(:span,row_data.send(field[0]),:class=>field[1])%>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
|
@ -8,6 +8,8 @@
|
||||||
<% @fields.each do |field|%>
|
<% @fields.each do |field|%>
|
||||||
<% if field[0] == "bulletin_category"%>
|
<% if field[0] == "bulletin_category"%>
|
||||||
<%= content_tag(:span,row_data.send(field[0]).title,:class=>field[1])%>
|
<%= content_tag(:span,row_data.send(field[0]).title,:class=>field[1])%>
|
||||||
|
<% elsif field[0] == "title" %>
|
||||||
|
<%= content_tag(:span, link_to(row_data.send(field[0]), panel_announcement_front_end_bulletin_path(row_data)), :class=>field[1]) %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<%= content_tag(:span,row_data.send(field[0]),:class=>field[1])%>
|
<%= content_tag(:span,row_data.send(field[0]),:class=>field[1])%>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
Loading…
Reference in New Issue