RISC OS Open
A fast and easily customised operating system for ARM devices
ROOL
Home | News | Downloads | Bugs | Bounties | Forum | Documents | Photos | Contact us
Account
You are currently browsing the Subversion repository.
Changesets can be listed by changeset number.
The CVS repository is here.
  • Changesets
  • » Changeset 460

Changeset 460

Changeset #459 broke ungrouped listings, as the ungrouped item internally
is a Symbol not String and "gsub" is a private method for that class.

  • Comitted by: rool
  • Date: Tuesday December 17 12:21:39 2013 (over 5 years ago)

Affected files:

  • Updated rool/rails/radiant/trunk/vendor/extensions/dir_list_tags/lib/dir_list_tags.rb (diff)

rool/rails/radiant/trunk/vendor/extensions/dir_list_tags/lib/dir_list_tags.rb:

prev.current 
desc %{
Renders a set of HTML tables that enumerate a directory in a parsed, augmented fashion. Environment variable SERVER_DOCUMENT_ROOT must be set and is used as the root path for directory enumeration. Even so, directory traversal is not prevented so only use this tag when content editors are trusted.
52   You must wrap output in <code><notextile>...</notextile></code> or an equivalent if you're using a filtered page type since the tag's value is raw HTML.
  52 Output is wrapped in <code><notextile>...</notextile></code> on assumption of Textile filtering.
Certain magic directories are ignored (CVS, .svn). The directory can contain a file 'config.yml' in subdirectory 'config', which works as described below. The intention is that each table corresponds to a group of files in some kind of file drop box, with a header above naming the group.
... ...
dscwd = link_base ? '40%' : '50%'
count = 0
310   html << "<h3>#{group_key}<a name=\"#{group_key.gsub(/\W/, '_').downcase}\" style=\"text-decoration: none; border-bottom: none; font-size: 1px\">&nbsp</a></h3>\n"
  310 html << "<h3>#{group_key}<a name=\"#{group_key.to_s.gsub(/\W/, '_').downcase}\" style=\"text-decoration: none; border-bottom: none; font-size: 1px\">&nbsp</a></h3>\n"
html << "<table width=\"100%\" class=\"parsed_directory_listing\" border=\"0\">\n"
html << "<tr><th width=\"10%\">Icon</th><th width=\"20%\" align=\"left\">Name,&nbsp;date&nbsp;&amp;&nbsp;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)

Search tickets

Social

Follow us on and

ROOL Store

Buy RISC OS Open merchandise here, including SD cards for Raspberry Pi and more.

Donate! Why?

Help ROOL make things happen – please consider donating!

RISC OS IPR

RISC OS is an Open Source operating system owned by RISC OS Developments Ltd and licensed primarily under the Apache 2.0 license.

Options

  • Tickets
  • New ticket
  • Milestones
  • Subversion: Changesets
  • Subversion: Browse
  • CVS: Revisions
  • CVS: Browse
  • Search

RSS feeds Rss

  • Changesets
  • Everything!
  • More feeds...
Site design © RISC OS Open Limited 2018 except where indicated
The RISC OS Open Collaboa theme is distantly based on the Collaboa default layout

Valid XHTML 1.0  |  Valid CSS

Powered by Collaboa
This site runs on Rails

Hosted by Arachsys