Skip to content

Commit 91a5bbf

Browse files
committed
fix links between stat versions
1 parent d1148bb commit 91a5bbf

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

app/views/basil/stats.html.erb

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,15 @@
66
<h1 style="font-size: 2em; margin-left: 1rem">Hey, I'm Basil.</h4>
77
<h2 style="font-size: 1.4em; margin-left: 1rem">I can help you visualize your ideas.</h2>
88
<p style="margin-left: 1rem">
9-
<strong>The latest Basil version is v2.</strong> This page is currently showing stats for v<%= @version %>. You can see v1's stats by <%= link_to 'clicking here', basil_stats_path(v: 1) %>.
9+
<strong>
10+
The latest Basil version is v2.</strong> This page is currently showing stats for v<%= @version %>.
11+
12+
<% if @version.to_i != 1 %>
13+
You can see v1's stats by <%= link_to 'clicking here', basil_stats_path(v: 1) %>.
14+
<% end %>
15+
<% if @version.to_i != 2 %>
16+
You can see v2's stats by <%= link_to 'clicking here', basil_stats_path(v: 2) %>.
17+
<% end %>
1018
<br /><br />
1119
<%= link_to 'Click here to start generating images of your notebook pages.', basil_path %>
1220
</p>

0 commit comments

Comments
 (0)