about subnav

This commit is contained in:
Peter Bhat Harkins 2022-02-19 18:27:01 -06:00
parent 91891dc214
commit 883dd2b28e
5 changed files with 17 additions and 7 deletions

View File

@ -0,0 +1,6 @@
<% content_for :subnav do %>
<%= link_to_different_page 'About', "/about" %>
<%= link_to_different_page 'Chat', chat_path %>
<%= link_to_different_page 'Stats', stats_path %>
<%= link_to_different_page 'Hats', hats_path %>
<% end %>

View File

@ -1,8 +1,4 @@
<% content_for :subnav do %>
<% if @user %>
<a href="<%= request_hat_url %>">Request Hat</a>
<% end %>
<% end %>
<% render partial: 'about/subnav' %>
<div class="box wide">
<p>
@ -12,6 +8,10 @@
message.
</p>
<% if @user %>
<h2><a href="<%= request_hat_url %>">Request Hat</a></h2>
<% end %>
<table class="data zebra" width="100%" cellspacing=0>
<tr>
<th style="width: 130px;">User</th>

View File

@ -1,6 +1,6 @@
<div class="box wide">
<h1>About</h1>
<% render partial: 'about/subnav' %>
<div class="box wide">
<%- raise "Site owner: You need to delete app/views/home/about.html.erb and write your own about page" if Rails.env.production? and Rails.application.name != 'Lobsters' -%>
<div class="story_text">

View File

@ -1,3 +1,5 @@
<% render partial: 'about/subnav' %>
<div class="box wide">
<div class="story_text">
<p>

View File

@ -1,3 +1,5 @@
<% render partial: 'about/subnav' %>
<div class="box wide">
<h2>New users by month</h2>