* VRFS-497 - adding footer links to rich client views
This commit is contained in:
parent
0bdb152c8f
commit
918153219e
|
|
@ -84,6 +84,7 @@
|
|||
layoutSidebar(width, height);
|
||||
layoutHeader(width, height);
|
||||
layoutNotify(width, height);
|
||||
layoutFooter(width, height);
|
||||
}
|
||||
|
||||
function layoutCurtain(screenWidth, screenHeight) {
|
||||
|
|
@ -279,6 +280,17 @@
|
|||
$notify.css(notifyStyle);
|
||||
}
|
||||
|
||||
function layoutFooter(screenWidth, screenHeight) {
|
||||
var $footer = $('#footer');
|
||||
var nHeight = $footer.height();
|
||||
var footerStyle = {
|
||||
top: (screenHeight - 80) + 'px'
|
||||
};
|
||||
var width = screenWidth - (2 * opts.gutter + 2 * opts.screenMargin);
|
||||
var left = -1 * width - 100;
|
||||
$footer.animate({ "left" : opts.gutter, "width" : width, "top": (screenHeight - 78) + "px"}, opts.animationDuration);
|
||||
}
|
||||
|
||||
function requiredStyles() {
|
||||
var bodyStyle = {
|
||||
margin: '0px',
|
||||
|
|
|
|||
|
|
@ -1,24 +1,34 @@
|
|||
@import "client/common.css.scss";
|
||||
|
||||
.footer {
|
||||
position: absolute;
|
||||
bottom:10px;
|
||||
left: 0px;
|
||||
width: 100%;
|
||||
color:$ColorText;
|
||||
margin: 0px 0px 30px 60px;
|
||||
@charset "UTF-8";
|
||||
#footer {
|
||||
position:absolute;
|
||||
bottom:0;
|
||||
width:100%;
|
||||
margin-top: 30px;
|
||||
padding-top: 10px;
|
||||
border-top:solid 1px #444;
|
||||
height:13px;
|
||||
}
|
||||
|
||||
.footer p {
|
||||
font-size: 80%;
|
||||
margin:3px;
|
||||
#copyright {
|
||||
float:left;
|
||||
font-size:11px;
|
||||
color:#ccc;
|
||||
}
|
||||
|
||||
.footer p.left {
|
||||
float:left;
|
||||
#footer-links {
|
||||
float:right;
|
||||
font-size:11px;
|
||||
color:#ccc;
|
||||
}
|
||||
|
||||
.footer p.right {
|
||||
float:right;
|
||||
margin-right: 120px;
|
||||
#footer-links a {
|
||||
color:#ccc;
|
||||
text-decoration:none;
|
||||
}
|
||||
|
||||
#footer-links a:hover {
|
||||
color:#fff;
|
||||
text-decoration:underline;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,17 @@
|
|||
class CorpController < ApplicationController
|
||||
|
||||
|
||||
# not implemented--jam-corp project contains this code
|
||||
|
||||
def contact
|
||||
render nothing: true
|
||||
end
|
||||
|
||||
def terms
|
||||
render nothing: true
|
||||
end
|
||||
|
||||
def privacy
|
||||
render nothing: true
|
||||
end
|
||||
end
|
||||
|
|
@ -1,12 +1,11 @@
|
|||
<!-- Footer -->
|
||||
<div class="footer">
|
||||
<p class="left">
|
||||
Copyright © <%= Time.now.year %> JamKazam, Inc. All Rights Reserved.
|
||||
</p>
|
||||
<p class="right">
|
||||
<a href="/#/contact">contact</a> |
|
||||
<a href="/#/terms">terms of use</a> |
|
||||
<a href="/#/privacy">privacy</a>
|
||||
</p>
|
||||
</div>
|
||||
<!-- start footer -->
|
||||
<div id="footer">
|
||||
|
||||
<!-- copyright -->
|
||||
<div id="copyright">Copyright © 2013 JamKazam, Inc. All Rights Reserved</div>
|
||||
|
||||
<!-- footer links -->
|
||||
<div id="footer-links"><%= link_to "contact", corp_contact_path %> | <%= link_to "terms of use", corp_terms_path %> | <%= link_to "privacy", corp_privacy_path %></div>
|
||||
|
||||
</div>
|
||||
<!-- end footer -->
|
||||
|
|
|
|||
|
|
@ -6,9 +6,9 @@
|
|||
</div>
|
||||
<div class="dialog-overlay op70" style="display:none; width:100%; height:100%; z-index:99;"></div>
|
||||
|
||||
<%= render "footer" %>
|
||||
<%= render "header" %>
|
||||
<%= render "home" %>
|
||||
<%= render "footer" %>
|
||||
<%= render "searchResults" %>
|
||||
<%= render "faders" %>
|
||||
<%= render "vu_meters" %>
|
||||
|
|
|
|||
|
|
@ -54,6 +54,12 @@ SampleApp::Application.routes.draw do
|
|||
# email update
|
||||
match '/confirm_email' => 'users#finalize_update_email', :as => 'confirm_email' # NOTE: if you change this, you break outstanding email changes because links in user inboxes are broken
|
||||
|
||||
scope '/corp' do
|
||||
match '/contact' => 'corp#contact', :as => 'corp_contact'
|
||||
match '/terms' => 'corp#terms', :as => 'corp_terms'
|
||||
match '/privacy' => 'corp#privacy', :as => 'corp_privacy'
|
||||
end
|
||||
|
||||
scope '/api' do
|
||||
# music sessions
|
||||
match '/sessions/:id/participants' => 'api_music_sessions#participant_create', :via => :post
|
||||
|
|
|
|||
Loading…
Reference in New Issue