Welcome Guest Login Register Member List
ExpressionEngine Forums
Advanced Search
Username: Password:
Remember Me? forgot password?
You are here: Forum Home  >  Usage  >  Tips and Tricks  >  Thread
   
 
Prettier Completed Tasks
 
pimpmaster
Posted: 07 January 2008 11:49 AM   [ Ignore ]  
Newbie
Rank
Total Posts:  4
Joined  2008-01-05

Its a minor detail, but I find that adding this

str = “<small>(#{str})</small>“ unless str.blank?

to todos_helper.rb::Line# 104

then in css

small {color:#777;}

Makes my completed tasks much easier to read

Profile
 
pimpmaster
Posted: 07 January 2008 11:31 PM   [ Ignore ]   [ # 1 ]  
Newbie
Rank
Total Posts:  4
Joined  2008-01-05

I also enclosed the context/project/date info in small tags in

views/todos/_done.rhtml

<small>
  <% if done.project_id %>
  <%= “(“ + done.context[‘name’] + “, “ + done.project[‘name’] + “)“ %>
  <% else %>
  <%= “(“ + done.context[‘name’] + “)“ %>
  <% end %>

  <% if done.due %>
  <%= “ - was due on “ + format_date( done.due ) %>
  <% end %>
  </small>

So much easier on the eyes!

Profile
 
Mattew
Posted: 23 February 2008 10:22 PM   [ Ignore ]   [ # 2 ]  
Newbie
Rank
Total Posts:  9
Joined  2008-02-20

Thanks - that is easier on the eyes.

Profile
 
   
 
 
‹‹ Javascript Helper for default Context Name      how to upgrade to latest development version? ››

Powered By ExpressionEngine
Template Design By Sonnenvogel.com
Select a theme:

ExpressionEngine Discussion Forum - Version 2.1.1 (20081028)
Script Executed in 0.1151 seconds

Atom Feed
RSS 2.0