doc/files/bin/dskexplorer_rb.src/M000010.html in dsktool-0.2.1 vs doc/files/bin/dskexplorer_rb.src/M000010.html in dsktool-0.4.1

- old
+ new

@@ -8,12 +8,12 @@ <title>make_navigation_path (bin/dskexplorer.rb)</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> </head> <body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File bin/dskexplorer.rb, line 124</span> -<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">make_navigation_path</span>(<span class="ruby-identifier">relative_path</span>,<span class="ruby-identifier">filename</span>=<span class="ruby-keyword kw">nil</span>) + <pre><span class="ruby-comment cmt"># File bin/dskexplorer.rb, line 121</span> +<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">make_navigation_path</span>(<span class="ruby-identifier">relative_path</span>,<span class="ruby-identifier">filename</span>=<span class="ruby-keyword kw">nil</span>,<span class="ruby-identifier">display_mode</span>=<span class="ruby-keyword kw">nil</span>) <span class="ruby-identifier">path_parts</span>=<span class="ruby-identifier">relative_path</span>.<span class="ruby-identifier">split</span>(<span class="ruby-value str">&quot;/&quot;</span>) <span class="ruby-comment cmt">#make the cookie-crumb-trail </span> <span class="ruby-identifier">partial_path</span>=<span class="ruby-value str">&quot;&quot;</span> <span class="ruby-identifier">s</span>=<span class="ruby-node">&quot;&lt;a href=/dir/&gt;#{@@root_directory}&lt;/a&gt;&quot;</span> <span class="ruby-identifier">path_parts</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">p</span><span class="ruby-operator">|</span> @@ -25,11 +25,15 @@ <span class="ruby-identifier">s</span><span class="ruby-operator">&lt;&lt;</span><span class="ruby-node">&quot;/&lt;a href=/dir#{uri_encode(partial_path)}&gt;#{p}&lt;/a&gt;&quot;</span> <span class="ruby-keyword kw">end</span> <span class="ruby-keyword kw">end</span> <span class="ruby-keyword kw">end</span> + <span class="ruby-identifier">mode_param</span>=<span class="ruby-value str">&quot;&quot;</span> + <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">display_mode</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-keyword kw">then</span> + <span class="ruby-identifier">mode_param</span>=<span class="ruby-node">&quot;&amp;mode=#{display_mode}&quot;</span> + <span class="ruby-keyword kw">end</span> <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">filename</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-keyword kw">then</span> - <span class="ruby-identifier">s</span><span class="ruby-operator">&lt;&lt;</span><span class="ruby-node">&quot;/&lt;a href=/showfile/#{uri_encode(relative_path)+'?filename='+uri_encode(filename)}&gt;#{filename}&lt;/a&gt;&quot;</span> + <span class="ruby-identifier">s</span><span class="ruby-operator">&lt;&lt;</span><span class="ruby-node">&quot;/&lt;a href=/showfile/#{uri_encode(relative_path)+'?filename='+uri_encode(filename)}#{mode_param}&gt;#{filename}&lt;/a&gt;&quot;</span> <span class="ruby-keyword kw">end</span> <span class="ruby-comment cmt">#show the contents of the current directory</span> <span class="ruby-identifier">directories</span>,<span class="ruby-identifier">dsk_files</span>=<span class="ruby-identifier">get_directories_and_files</span>(<span class="ruby-identifier">relative_path</span>) \ No newline at end of file