Sha256: 3ed3eb2b739d1ee5af589bd62853ec506070b68ddc51b35ffb99ecd12bf4c5dc
Contents?: true
Size: 1.11 KB
Versions: 1
Compression:
Stored size: 1.11 KB
Contents
<% if !(session[:help_popups_clearance].nil?) %> <% if @topics.count == 0 %> <b>No Help Topics Defined!<b><br/> Please click the link below to add one...<br/> <% else %> <table cellpadding=0 cellspacing=0 width="600"> <thead> <td>Code</td> <td>Title</td> </thead> <% trClass = "odd" %> <% @topics.each do |topic| %> <% if (trClass == "even") then trClass = "odd" else trClass = "even" end %> <tr class="<%= trClass %>"> <td><%= link_to topic.code, edit_topic_path(topic) %></td> <td><%= topic.title %></td> </tr> <% end %> </table> <% end %> <br/> <%= link_to "Add New Help Topic", new_topic_path %> <% else %> You must login before you can access the Help Popups administration.<br/> Please enter the password you defined for <b>config.help_popups_password</b>: <br/> <br/> <% flash.each do |key, value| %> <%= content_tag(:div, value, :class => "flash #{key}") %> <% end %> <form action='/help_popups/login' method='post'><input type='text' size='20' id='help_popups_password' name='help_popups_password'> <input type='submit' value='Submit'></form> <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
help_popups-1.0.0 | app/views/help_popups/topics/index.html.erb |