Sha256: db114d6349cf33f551cf51033fa6c5b98a0c58af35f85d1734f2669337410c8d
Contents?: true
Size: 1.4 KB
Versions: 3
Compression:
Stored size: 1.4 KB
Contents
<div id="listing"> <table> <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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
taskwarrior-web-1.0.2 | lib/taskwarrior-web/views/listing.erb |
taskwarrior-web-1.0.1 | lib/taskwarrior-web/views/listing.erb |
taskwarrior-web-1.0.0 | lib/taskwarrior-web/views/listing.erb |