Sha256: a0db42f00ba8fa29640f424aa13bda1d38bd98d785999b5274d19cd8d76dee67

Contents?: true

Size: 1.88 KB

Versions: 1

Compression:

Stored size: 1.88 KB

Contents

<% @title = "Mind Map"
   @style_additions = "img { width: 8in; }"
%>
<%= sub_template "top" %>

<h4>A "Mind Map" created from the Wiki links.</h4>

<table border=0>
 <tr>
  <td colspan='3' id='mapcell'>
   <img src="file://<%= @pngFile %>" usemap="#graph.map" />
   <map name="graph.map"><%= File.read(@mapFile) %></map>
  </td>
 </tr>
 <tr>
  <form name="input" action="../mind/" method="post">
    <td width="100" style="vertical-align:top;" >
      <input type="radio" name="draw_type" value="neato" <% if @prog == 'neato' %> checked <% end %>>Neato<br>
      <input type="radio" name="draw_type" value="dot"   <% if @prog == 'dot'   %> checked <% end %>>Dot</br>
      <input type="radio" name="draw_type" value="circo" <% if @prog == 'circo' %> checked <% end %>>Circo</br>
      <input type="radio" name="draw_type" value="twopi" <% if @prog == 'twopi' %> checked <% end %>>Twopi</br>
    </td>
    <td style="vertical-align:top;" width="40%">
      <input type="radio" name="graph_type" value="normal" <% if @graph_type == 'normal' %> checked <% end %>>Draw Normal Graph<br>
      <input type="radio" name="graph_type" value="author" <% if @graph_type == 'author' %> checked <% end %>>Draw Authors Graph<br>
      <input type="radio" name="graph_type" value="category" <% if @graph_type == 'category' %> checked <% end %>>Draw Category Graph<br>
    </td>
    <td style="vertical-align:top;">
      <input type="checkbox" name="show_authors" <% if @req.query['show_authors'] == 'on' %> checked <% end %>>Show author pages<br>
      <input type="checkbox" name="missing" <% if @req.query['missing'] == 'on' %> checked <% end %>>Show missing pages<br>
      <input type="submit" value="Redraw" name="Go">
    </td>
    </form>
  </td>
 </tr>
</table>

<p>Graphs generated with <a href='http://www.research.att.com/sw/tools/graphviz/'>GraphViz</a>. 

<%= sub_template "bottom" %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
Pimki-1.1.092 app/views/wiki/mind.rhtml