Changesets can be listed by changeset number.
The Git repository is here.
Changeset 273
Support for MD5 checksums in listings of downloadable
components. Had to shoehorn it in a bit; not ideal, but
it does work.
- Comitted by: rool
- Date: Friday February 12 12:37:39 2010 (over 14 years ago)
Affected files:
- rool/rails/radiant/trunk/app/models/page_context.rb (diff)
- rool/www/static/trunk/css/risc_os_open.css (diff)
rool/rails/radiant/trunk/app/models/page_context.rb:
prev. | current | |
excludes = [ 'CVS', '.svn' ] | ||
collect = []; | ||
721 | | |
721 | dir = File.join( base, dir ) | |
first = true | ||
Find.find(dir) do |path| | ||
... | ... | |
def parsed_directory_list_in_table( base, dir, link_base, link_icon ) | ||
list = recursive_directory_list(base, dir, false) | ||
789 | ||
789 | ||
# Load the configuration file, if provided | ||
begin | ||
793 | | |
793 | configuration = YAML.load_file( File.join( base, dir, 'config', 'config.yml' ) ) | |
rescue | ||
configuration = {} | ||
end | ||
... | ... | |
link = config['link'] || "#{link_base}#{name}" | ||
info = config['info'] || '-' | ||
group = config['group'] || :Ungrouped | ||
826 | md5 = config['md5'] | |
827 | md5_time = config['md5_time'] | |
829 | unless ( md5.nil? || md5_time.nil? ) | |
830 | md5, md5_time = nil if ( entry[:mod] > md5_time ) | |
831 | end | |
832 | ||
icon = "#{dir}/icons/#{icon}" | ||
unless (File.exist?("#{base}#{icon}")) | ||
... | ... | |
:icon => icon, | ||
:link => link, | ||
:info => info, | ||
855 | :md5 => md5, | |
:raw => entry | ||
} ) | ||
end | ||
... | ... | |
count = 0 | ||
html << "<h3>#{group_key}</h3>\n" | ||
html << "<table width=\"100%\" class=\"parsed_directory_listing\" border=\"0\">\n" | ||
877 | | |
884 | html << "<tr><th width=\"10%\">Icon</th><th width=\"20%\" align=\"left\">Name, date & MD5</th><th width=\"#{dscwd}\" align=\"left\">Description</th><th width=\"10%\">Version</th><th width=\"10%\">Size</th>" | |
html << "<th width=\"10%\">Details</th>" if (link_base) | ||
html << "</tr>\n" | ||
... | ... | |
"</div>" | ||
end | ||
912 | | |
919 | md5 = entry[:md5] | |
920 | ||
921 | if (md5.nil?) | |
922 | md5str = '' | |
923 | else | |
924 | md5str = "<div class=\"parsed_directory_listing_md5\">#{ md5 }</div>" | |
925 | end | |
926 | ||
927 | html << "<td><a href=\"#{entry[:raw][:link]}\">#{entry[:name]}</a>#{tstr}#{md5str}</td>" | |
html << "<td class=\"can_wrap\">#{entry[:info]}</td>" | ||
html << "<td align=\"center\">#{entry[:version]}</td>" | ||
html << "<td align=\"center\">#{entry[:raw][:size]}</td>" |
rool/www/static/trunk/css/risc_os_open.css:
prev. | current | |
overflow: auto; | ||
} | ||
42 | ||
43 | | |
44 | | |
45 | ||
46 | ||
47 | ||
48 | | |
49 | ||
50 | ||
/* Shadow effects and common section container styles */ | ||
div.template_shadow_left | ||
... | ... | |
font-size: 70%; | ||
} | ||
467 | div.parsed_directory_listing_md5 | |
468 | { | |
469 | margin-top: 3px; | |
470 | font-size: 55%; | |
471 | } | |
472 | ||
/* CVS revisions and SVN changesets */ | ||
div.log, |