Hi,
I’ve been tinkering with my Tracks install, which is made a bit more difficult since I’m have no experience with Ruby whatsoever. So far I tried the following:
- Instead of [C] and [P], display something more informative. This turned out to be pretty easy: in _item.rhtml I changed the displaying code to the following:
<% if item.done? -%>
(<%= item.context.name %><%= ", " + item.project.name if item.project_id %>)
<% else -%>
<% if @on_page == "project" -%>
<%= link_to( "(" + truncate( item.context.name ) + ")", { :controller => "context",
:action => "show", :name => urlize(item.context.name) }, :title => "View context: #{item.context.name}" ) %>
<% elsif item.project_id -%>
<%= link_to( "[" + truncate( item.project.name ) + "]", { :controller => "project",
:action => "show", :name => urlize(item.project.name) }, :title => "View project: #{item.project.name}" ) %>
<% end -%>
<% end -%>
- Feeling quite pleased, I set out to change the display of an action such that the first letter is always capitalized. This is because my wife enters actions without capitals and this irks me. However, I have not managed to achieve the desired effect. It’s got to be incredibly easy, so maybe someone with more experience in Ruby can help?
- Finally, I want to change the sizes of the tables on the screen. I always get too much lost blank space on the right of the screen. If I change standard.css as follows:
lampje:/usr/src/tracks-1.042/public/stylesheets# diff standard.css standard.css.bu
56,57c56,57
< width: 70%;
< margin: 0px 50px 50px 15px;
---
> width: 450px;
> margin: 0px 15px 50px 15px;
61c61
< width: 70%;
---
> width: 450px;
67,68c67,68
< width: 80%;
< margin: 15px 15px 50px 15px;
---
> width: 800px;
> margin: 0px 15px 50px 15px;
73,74c73,74
< width: 80%;
< margin: 15px 15px 50px 15px;
---
> width: 820px;
> margin: 0px 15px 50px 15px;
189c189
< padding-left: 3px;
---
> padding-left: 3px;
... it looks like I want. However, when I try to enter a new action, the whole sidebar moves to the bottom of the page and after pressing enter I get a large green rectangle that covers the screen. Does anyone have any idea how to solve this?
Bye,
Steven
