Currently the “group by date” setting in the delicious sidebar does
not seem to have any effect: it’s always on.
I think the reason is that the value in @sb_config[‘groupdate’]
evaluates to “0” or “1”, both strings and hence both true according
to Ruby (any Perl programmers out there want to own up to this one? :).
I guess a proper fix would be to map this setting to a boolean, but I
don’t know much about how sidebars are configured, so I’ve got a bit
of a brute force fix instead, comments appreciated.
typo $ svn diff components/plugins/sidebars/delicious/content.rhtml
Index: components/plugins/sidebars/delicious/content.rhtml
— components/plugins/sidebars/delicious/content.rhtml (revision 1193)
+++ components/plugins/sidebars/delicious/content.rhtml (working copy)
@@ -1,8 +1,8 @@
<% if @delicious -%>
<%=h
@delicious.title %>
- <% (@sb_config[‘groupdate’] ? @delicious.days : [{ :container =>
@delicious.items }]).each do |group| -%> - <% if @sb_config[‘groupdate’] -%>
- <% (@sb_config[‘groupdate’] != “0” ? @delicious.days :
[{ :container => @delicious.items }]).each do |group| -%> - <% if @sb_config[‘groupdate’] != “0” -%>
<%=h group[:date].to_s.to_date.strftime("%b %
d") %>
<% end -%>