Skip to content

Instantly share code, notes, and snippets.

@mileszs
Created November 16, 2009 21:16
Show Gist options
  • Select an option

  • Save mileszs/236318 to your computer and use it in GitHub Desktop.

Select an option

Save mileszs/236318 to your computer and use it in GitHub Desktop.
<h1>MIS Tasks</h1>
<p>The following are features scheduled to be implemented, not including bugs, nor features placed on the back-burner.</p>
<p>
<% @labels.each do |l| -%>
<%= link_to l, "##{l}", :id => "#{l}", :class => "labels" %>
<% end -%>
</p>
<table class="tbl">
<thead>
<tr>
<th class="ticketNumber">#</th>
<th>Name</th>
<th class="customer">Labels</th>
</tr>
</thead>
<tbody>
<%
row_class = 'odd'
@stories.each_with_index do |story, i|
%>
<tr class="mistasks <%= row_class %> <%= story.labels.gsub(',', ' ') unless story.labels.nil? %>">
<td class="ticketNumber"><%= h(i+1) %></td>
<td><%= h(story.name) %></td>
<td class="customer"><%= h(story.labels) %></td>
</tr>
<%
if row_class == "odd"
row_class = "even"
else
row_class = "odd"
end
end
%>
</tbody>
</table>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment