Guest User

Untitled

a guest
Apr 24th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. <h1>MIS Tasks</h1>
  2.  
  3. <p>The following are features scheduled to be implemented, not including bugs, nor features placed on the back-burner.</p>
  4.  
  5. <p>
  6. <% @labels.each do |l| -%>
  7. <%= link_to l, "##{l}", :id => "#{l}", :class => "labels" %>
  8. <% end -%>
  9. </p>
  10.  
  11. <table class="tbl">
  12. <thead>
  13. <tr>
  14. <th class="ticketNumber">#</th>
  15. <th>Name</th>
  16. <th class="customer">Labels</th>
  17. </tr>
  18. </thead>
  19. <tbody>
  20.  
  21. <%
  22. row_class = 'odd'
  23. @stories.each_with_index do |story, i|
  24. %>
  25. <tr class="mistasks <%= row_class %> <%= story.labels.gsub(',', ' ') unless story.labels.nil? %>">
  26. <td class="ticketNumber"><%= h(i+1) %></td>
  27. <td><%= h(story.name) %></td>
  28. <td class="customer"><%= h(story.labels) %></td>
  29. </tr>
  30. <%
  31. if row_class == "odd"
  32. row_class = "even"
  33. else
  34. row_class = "odd"
  35. end
  36. end
  37. %>
  38. </tbody>
  39. </table>
Add Comment
Please, Sign In to add comment