Sha256: f0d82026d2e8cc8b36e2ee98dcc852a072aab310db295542da1adf5f4afc724d
Contents?: true
Size: 1.44 KB
Versions: 5
Compression:
Stored size: 1.44 KB
Contents
<div id="listing"> <table class="table table-striped table-hover"> <thead> <tr> <% if params[:status] == 'pending' %> <th></th> <% end %> <th>Description</th> <th>Project</th> <th>Due</th> <th>Tags</th> <th>Priority</th> </tr> </thead> <tbody> <% @tasks.each do |task| %> <% if task.status == 'pending' %> <tr class="<%= colorize_date(task.due) %>"> <% else %> <tr class="<%= task.status %>"> <% end %> <% if params[:status] == 'pending' %> <td><input type="checkbox" class="complete" data-task-id="<%= task.uuid %>" /></td> <% end %> <td> <%= task.description %> <% unless task.annotations.nil? || task.annotations.empty? %> <ul> <% task.annotations.each do |annotation| %> <li><%= format_date(annotation['entry']) %>: <%= auto_link(annotation['description']) %></li> <% end %> </ul> <% end %> </td> <td><a href="/projects/<%= linkify(task.project, :project) %>"><%= task.project %></a></td> <td><%= format_date(task.due) unless task.due.nil? %></td> <td><%= task.tags.join(', ') unless task.tags.nil? %></td> <td><%= task.priority unless task.priority.nil? %></td> </tr> <% end %> </tbody> </table> </div>
Version data entries
5 entries across 5 versions & 1 rubygems