Closed J3RN closed 7 years ago
Looks good! task_with_tag_labels
appears easy to extend with color options should the desire arise. Not able to test it currently but is the generated code decently readable? Mainly questioning the line:
task_div + tag_spans.reduce(:+)
looks a little strange (does the :+
just concatenate them?) alas I don't do enough Rails.
Yes, that's a Ruby thing. I think I tried using .join
, which is more readable, but I believe the resulting string wasn't html_safe
, and this one is. If it really comes down to it, I could use join
and call html_safe
on it --- I just really hate calling html_safe
.
On the Tasks#index page:
On TimeEntries#index:
Regrettably,
<option>
tags are not allowed to contain HTML, so they are still left looking the same:I'm fairly satisfied with this, so unless anyone raises serious concerns within the next hour or so, I'll be merging this.
Closes #107