<div class="home_news_highlight"> <div class="home_news_highlight_pic"><span></span> <% id = 0 %> <% for article in @all_articles %> <%= scale_image_tag article.picture1, :width => 137, :height => 153, :alt => article.picture1.image_alt, :id => "article_image_" + id.to_s, :style => (article == @all_articles.first ? "": "display:none;") %> <% id += 1 %> <% end %> </div> <% id = 0 %>
<% for article in @all_articles %> <p class="slideshow_text" id="article_summary_<%= id.to_s %>" style="<%= (article == @all_articles.first ? "": "display:none;") %>"></p> <h1><%= link_to (article.name), :controller => "article", :action => "show", :id => article %></h1> <%= article.date.strftime("%a %d %B") %> <p><%= article.summary[0,75] %>...</p> <% id += 1 %> <% end %> </div>
If you need any more information to respond, please don't hesitate to ask.
- thanks in advance.