This commit is contained in:
John Poulin
2014-04-08 12:49:31 -04:00
committed by cktricky
parent 9fd91a8224
commit e760fc0087
3 changed files with 17 additions and 10 deletions
+5
View File
@@ -4,6 +4,11 @@ class DashboardController < ApplicationController
def home def home
@user = current_user @user = current_user
# See if the user has a font preference
if params[:font]
cookies[:font] = params[:font]
end
end end
end end
+7 -7
View File
@@ -6,13 +6,13 @@
<%= javascript_include_tag "application" %> <%= javascript_include_tag "application" %>
<%= csrf_meta_tags %> <!-- <~ What is this for? I hear it helps w/ JS and Sea-surfing.....whatevz --> <%= csrf_meta_tags %> <!-- <~ What is this for? I hear it helps w/ JS and Sea-surfing.....whatevz -->
<!-- bootstrap css --> <!-- bootstrap css -->
<script type="text/javascript" src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> <%
<!--[if lte IE 7]> if cookies[:font]
<script src="assets/fonts/lte-ie7.js"> %>
</script> <style>body { font-size:<%= cookies[:font] %>pt !important;}</style>
<![endif]--> <%
end
<!-- Google Visualization JS --> %>
<script type="text/javascript" src="https://www.google.com/jsapi"></script> <script type="text/javascript" src="https://www.google.com/jsapi"></script>
</head> </head>
+5 -3
View File
@@ -1,8 +1,10 @@
<header> <header>
<a href="#l" class="logo">
</a>
<span style="color:#eee;margin-left:10px;">
Font Size:
<a href="<%= home_dashboard_index_path %>?font=10" style="font-size:10pt;color:#eee;">A</a>
<a href="<%= home_dashboard_index_path %>?font=18" style="font-size:18pt;color:#eee;">A</a>
</span>
<div class="user-profile"> <div class="user-profile">
<a data-toggle="dropdown" class="dropdown-toggle"> <a data-toggle="dropdown" class="dropdown-toggle">
<img src=" <%= image_path('profile_color.jpg')%>" alt="profile"> <img src=" <%= image_path('profile_color.jpg')%>" alt="profile">