Enhancment - undo

- Now presents a side-by-side table for comparison during undo.
This commit is contained in:
Paul Beckingham 2009-07-02 22:15:10 -04:00
parent 5a1191300c
commit 65595220f2
4 changed files with 99 additions and 8 deletions

View file

@ -529,3 +529,16 @@ std::string taskDifferences (const Task& before, const Task& after)
}
////////////////////////////////////////////////////////////////////////////////
std::string renderAttribute (const std::string& name, const std::string& value)
{
Att a;
if (a.type (name) == "date")
{
Date d ((time_t)::atoi (value.c_str ()));
return d.toString (context.config.get ("dateformat", "m/d/Y"));
}
return value;
}
////////////////////////////////////////////////////////////////////////////////