Sha256: 54fa347da019fd97ac3c50216d83a94e3f3badd788cb42df7c5a386d9c076af0
Contents?: true
Size: 1.6 KB
Versions: 3
Compression:
Stored size: 1.6 KB
Contents
<% can_edit = @can_edit && params[:status] == 'pending' %> <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> <% if @can_edit %><th></th><% end %> </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) %>"><%= 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> <% if can_edit %><td><%= crud_links(task) %></td><% end %> </tr> <% end %> </tbody> </table> </div>
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
taskwarrior-web-1.1.2 | lib/taskwarrior-web/views/listing.erb |
taskwarrior-web-1.1.1 | lib/taskwarrior-web/views/listing.erb |
taskwarrior-web-1.1.0 | lib/taskwarrior-web/views/listing.erb |