app/views/wiki/edit_menu.rhtml in Pimki-1.0.092 vs app/views/wiki/edit_menu.rhtml in Pimki-1.1.092
- old
+ new
@@ -7,14 +7,22 @@
<%= render_markup_help %>
<form id="editForm" action="../save_menu" method="post">
<p>Please choose the format you prefer for the left-size menu:</p>
+<p><input type="radio" name="type" value="linkers" <%= 'checked' if @menu_type == 'linkers' %>>Only pages that link other pages (default)</p>
<p><input type="radio" name="type" value="all" <%= 'checked' if @menu_type == 'all' %>>All Pages</p>
<p><input type="radio" name="type" value="revised" <%= 'checked' if @menu_type == 'revised' %>>Recently revised pages</p>
<p><input type="radio" name="type" value="recent" <%= 'checked' if @menu_type == 'recent' %>>Recently visited pages</p>
<p><input type="radio" name="type" value="viewed" <%= 'checked' if @menu_type == 'viewed' %>>Most viewed pages</p>
-<p><input type="radio" name="type" value="linkers" <%= 'checked' if @menu_type == 'linkers' %>>Only pages that link other pages (default)</p>
+<p><input type="radio" name="type" value="category" <%= 'checked' if @menu_type == 'category' %>>Pages in a specific category:
+ <select id="category" name="category" size="1" style="width:190">
+ <option value="noselect">------------
+ <% for category in web.categories %>
+ <option value="<%= category %>"><%= category %>
+ <% end %>
+ </select>
+</p>
<p>For the above options you can choose if you want to limit the number of results. Enter the number of items you wish, or 0 for all items: <input type="textfield" size="20", name="limit" value="<%= @list_limit %>" /></p>
<p><input type="radio" name="type" value="user" <%= 'checked' if @menu_type == 'user' %>>Or just write your own menu contents (as a regular Wiki page):
<textarea name="content" style="width: 400px; height: 300px"><%= @menu_content %></textarea>
</p>
<p>
\ No newline at end of file