Skip to content

Commit

Permalink
Merge branch 'feature/design_layouts' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
tayfunoziserikan committed Sep 11, 2013
2 parents a4ec75a + b6f0f0f commit 2b09097
Show file tree
Hide file tree
Showing 24 changed files with 1,870 additions and 31 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
GIT
remote: git://github.com/thomas-mcdonald/bootstrap-sass.git
revision: 79e7f27bcd70aa56682a8460c0bd6871bb6da172
revision: 0e88056ac5d58fb0bbd23d3fe929eac01712d964
branch: 3
specs:
bootstrap-sass (3.0.0.0)
Expand Down
10 changes: 7 additions & 3 deletions config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@
# page "/path/to/file.html", :layout => :otherlayout
#
# A path which all have the same layout
# with_layout :admin do
# page "/admin/*"
# end
with_layout :login do
page '/index.html'
page '/forgot_password.html'
end

# Proxy (fake) files
# page "/this-page-has-no-template.html", :proxy => "/template-file.html" do
Expand All @@ -63,6 +64,9 @@
# end
# end

# i18n
activate :i18n

set :fonts_dir, 'assets/fonts'
set :css_dir, 'assets/stylesheets'
set :js_dir, 'assets/javascripts'
Expand Down
12 changes: 12 additions & 0 deletions helpers/view_helpers.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module ViewHelpers
def page(title, id)
@page_id = id
content_for :title do
title
end
end

def launcher_active(page)
@page_id == page ? {class:'active'} : {}
end
end
13 changes: 13 additions & 0 deletions locales/en.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
en:
login_heading: "Login to your account"
login_remember_me: "Remember me on this computer"
login_email: "Email address"
login_email_hint: "Enter your email address"
login_password: "Password"
forgot_password: "Forgot password?"
forgot_password_heading: "Reset your password"

sign_in: "Sign in"
sign_out: "Sign out"
send: "Send"
go_back: "Go back"
Binary file added source/assets/images/sprite.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 29 additions & 1 deletion source/assets/javascripts/application.js.coffee
Original file line number Diff line number Diff line change
@@ -1,3 +1,31 @@
#= require bootstrap
#= require_tree

$(document).ready ->
$(document).ready ->

# Enable Tips & Popovers
$('[data-toggle=tooltip]').tooltip()
$('[data-toggle=popover]').popover()

# Eable Dropdowns
$('.dropdown-toggle').dropdown()
$('.dropdown.hover').hover (->
$(this).find('.dropdown-menu').stop(true, true).fadeIn()
), ->
$(this).find('.dropdown-menu').stop(true, true).delay(100).fadeOut()

# Dock dropdown fix
$('#dock li.launcher').each ->
$(this).find('.dropdown-menu').css 'top', $(this).position().top + 33

$('#toggle').click ->
$('#dock .launcher a').toggle()
$('#dock li.launcher').each ->
$(this).find('.dropdown-menu').css 'top', $(this).position().top + 33

# Enable toolbar tooltips
$('[data-toggle=toolbar-tooltip]').tooltip
placement: 'bottom'

# Enable knob inputs
$('.knob').knob()
Loading

0 comments on commit 2b09097

Please sign in to comment.