layouts/project_data.erb
1 2 3 4 5 6 7 8 9 10 11 12 |
----- filter: erb ----- <nav class="project-links"> <%= @item.attributes[:links].map{ |l| res=nil; l.each_pair{ |label, value| res = %{<a href="#{value}">#{label.to_s.upcase}</a>}}; res }.join(" | ") %> </nav> <ul class="project-data"> <li>Project Status: <strong><%= @item.attributes[:status] %></strong></li> <li>Version: <strong><%= @item.attributes[:version]%></strong></li> </ul> |