Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 193
- Log:
First stage commit of Typo 4.1, modified for the ROOL site.
Includes all local modifications but a final pass needs to be
made to delete any files left over from earlier Typo versions
that shouldn't be here anymore. See the 'tags' section of the
repository for a clean Typo 4.1 tree.Note that symlinks to shared files in the RISC OS Open theme
directory have been deliberately included this time around; I
decided that on balance it was better to leave them in as
placeholders, since unlike symlinks in app/views/shared, the
Typo theme structure is not a standard Rails concept.
- Author:
- rool
- Date:
- Wed Apr 04 18:51:02 +0100 2007
- Size:
- 1237 Bytes
1 | <% |
2 | #Since the data is in yaml coming out of the DB it is converted here from |
3 | #comparision. This is a hack to get things working. |
4 | unless categories.nil? |
5 | selected = YAML::load(categories) |
6 | else |
7 | selected = Hash.new |
8 | end |
9 | -%> |
10 | <select name="itunes_category[]" id="resource_itunes_category_<%= id %>" size="3" multiple="multiple"> |
11 | <% @itunes_category_list.each do |h| |
12 | h.each_pair do |cat,subcats| -%> |
13 | <% # not a great way of handling this but it looks better -%> |
14 | <% if selected.key?(cat) -%> |
15 | <option value="<%=h cat %>" selected="selected"><%=h cat %></option> |
16 | <% else -%> |
17 | <option value="<%=h cat %>"><%=h cat %></option> |
18 | <% end -%> |
19 | <% subcats.each do |subcat| -%> |
20 | <% unless selected[cat].nil? -%> |
21 | <% if selected[cat].include?(subcat) -%> |
22 | <option value="<%=h cat %>-<%=h subcat %>" selected="selected"> -<%=h subcat %></option> |
23 | <% else -%> |
24 | <option value="<%=h cat %>-<%=h subcat %>"> -<%=h subcat %></option> |
25 | <% end -%> |
26 | <% else -%> |
27 | <option value="<%=h cat %>-<%=h subcat %>"> -<%=h subcat %></option> |
28 | <% end -%> |
29 | <% end unless subcats.nil? %> |
30 | <% end -%> |
31 | <% end -%> |
32 | </select> |