Sha256: 1de50fb258a292506f3f8f9245a0a117eebe54f06c08da5bbb701e479d5f5d8c

Contents?: true

Size: 587 Bytes

Versions: 2

Compression:

Stored size: 587 Bytes

Contents

<% 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 %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
help_popups-0.1.1 app/views/help_popups/topics/index.html.erb
help_popups-0.1.0 app/views/help_popups/topics/index.html.erb