diff --git a/lib/taskwarrior-web/helpers.rb b/lib/taskwarrior-web/helpers.rb index 212aed7..94c57df 100644 --- a/lib/taskwarrior-web/helpers.rb +++ b/lib/taskwarrior-web/helpers.rb @@ -1,6 +1,8 @@ require 'active_support/core_ext/date/calculations' module TaskwarriorWeb::App::Helpers + include ERB::Util + def format_date(timestamp) format = TaskwarriorWeb::Config.dateformat || '%-m/%-d/%Y' Time.parse(timestamp).localtime.strftime(format) diff --git a/lib/taskwarrior-web/services/builder/base.rb b/lib/taskwarrior-web/services/builder/base.rb index 58d246e..8f716ac 100644 --- a/lib/taskwarrior-web/services/builder/base.rb +++ b/lib/taskwarrior-web/services/builder/base.rb @@ -10,7 +10,7 @@ module TaskwarriorWeb::CommandBuilder::Base :complete => ':id done', :annotate => ':id annotate', :denotate => ':id denotate', - :projects => '_projects', + :projects => '_unique project', :tags => '_tags', :sync => 'sync' } diff --git a/lib/taskwarrior-web/views/tasks/_form.erb b/lib/taskwarrior-web/views/tasks/_form.erb index 789e7a1..fa08698 100644 --- a/lib/taskwarrior-web/views/tasks/_form.erb +++ b/lib/taskwarrior-web/views/tasks/_form.erb @@ -1,14 +1,14 @@
- +
- +
@@ -45,7 +45,7 @@
- + Enter tags separated by commas or spaces (e.g. each, word will,be a tag)