Sha256: d9709bf367aa5a8cf2d039c30bdcac86c324e8f51d21d16a27cf0ed191dce5d0
Contents?: true
Size: 1.17 KB
Versions: 5
Compression:
Stored size: 1.17 KB
Contents
<% if !(session[:help_popups_clearance].nil?) || (Rails.configuration.help_popups_simple_auth == false) %> <% 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
5 entries across 5 versions & 1 rubygems