Forgot migration from previous commit. Also added links to home page

This commit is contained in:
Will Bradley 2013-02-09 04:01:21 -07:00
parent ac66cb0cbe
commit 63913c0be3
3 changed files with 24 additions and 1 deletions

View File

@ -1,3 +1,4 @@
// Place all the styles related to the home controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
table, td { vertical-align: top }

View File

@ -1,5 +1,4 @@
<h1>Welcome to the HeatSync Labs Members App.</h1>
<% if !user_signed_in? then %>
<p>You can sign up to become a member here!</p>
<% end %>
@ -11,6 +10,9 @@
<% if user_signed_in? && current_user.member.to_i < current_user.member_level.to_i then %>
<p class="alert">Looks like we haven't acknowledged a recent payment for you yet. This could be because we're slow, or this app just got started, but if in doubt please see your profile for payment instructions, or consider updating your membership level to something accurate.<br/>Thanks for supporting HeatSync!</p>
<% end %>
<table>
<tr>
<td>
<% if ((can? :read, @recent_user_names) && (@recent_user_names.count > 1)) then %>
<h2>New People:</h2>
<ul>
@ -32,3 +34,18 @@
<dt># of Computers in this DB:</dt>
<dd><%= @num_macs %> (<%= @recent_macs %> seen today)</dd>
</dl>
</td>
<td>
<h2>Member Resources</h2>
<ul>
<li><%= link_to "Wiki", "http://wiki.heatsynclabs.org" %></li>
<li><%= link_to "Discussion Group", "http://groups.google.com/group/heatsynclabs" %></li>
<li><%= link_to "IRC", "irc://irc.freenode.net#heatsynclabs" %></li>
<li><%= link_to "Live Webcams", "http://live.heatsynclabs.org/" %></li>
<li>Lab Phone: (480) 751-1929</li>
</ul>
</td>
</tr>
</table>

View File

@ -0,0 +1,5 @@
class AddMarketingSourceToUsers < ActiveRecord::Migration
def change
add_column :users, :marketing_source, :string
end
end