Renamed helpers to correspond to renamed Controller classes.
[merb_radiant.git] / app / views / admin / snippet / .svn / text-base / index.html.erb.svn-base
blob3846179edbb8c6555fa764ec7d9e806c35d691f9
1 <h1>Snippets</h1>
3 <p>Snippets are generally small pieces of content which are included in other pages or layouts.</p>
5 <table id="snippets" class="index" cellpadding="0" cellspacing="0" border="0">
6   <thead>
7     <tr>
8       <th class="snippet">Snippet</th>
9       <th class="modify">Modify</th>
10     </tr>
11   </thead>
12   <tbody>
13 <% unless @snippets.empty? -%>
14 <% for snippet in @snippets -%>
15     <tr class="node level-1">
16       <td class="snippet">
17         <%= image "snippet", :class => "icon", :alt => 'snippet-icon', :title => '' %>
18         <span><%= link_to snippet.name, snippet_edit_url(:id => snippet) %></span>
19       </td>
20       <td class="remove"><%= link_to image('remove', :alt => 'Remove Snippet'), snippet_remove_url(:id => snippet) %></td>
21     </tr>
22 <% end -%>
23 <% else -%>
24     <tr>
25       <td colspan="2" class="note">No Snippets</td>
26     </tr>
27 <% end -%>
28   </tbody>
29 </table>
30 <script type="text/javascript">
31 // <![CDATA[
32   new RuledTable('snippets');
33 // ]]>
34 </script>
36 <p><%= link_to image('new-snippet', :alt => 'New Snippet'), snippet_new_url %></p>