User music preferences in bitmask

This commit is contained in:
magnolia-fan
2011-09-15 08:35:48 +04:00
parent 2f31a6fd65
commit d50d584bf8
10 changed files with 29 additions and 13 deletions
+3 -2
View File
@@ -38,6 +38,7 @@ $ ->
$('.dropdown-toggle, .menu').live 'click', ->
$(this).parent('li').toggleClass('open')
false
$('.dropdown-toggle li, .menu li').live 'click', ->
$(this).parent('li').toggleClass('open')
$('.dropdown-menu li a').live 'click', ->
console.log(1)
$(this).parent().parent().parent().toggleClass('open')
false
+1
View File
@@ -1,3 +1,4 @@
class User < ActiveRecord::Base
bitmask :music, :as => [:album, :single, :live, :bootleg]
has_one :session
end
+3 -3
View File
@@ -27,13 +27,13 @@
= image_tag "artist_loader.gif"
%ul.nav.secondary-nav
%li.dropdown
%a.dropdown-toggle#username{ :href => "#" } %username%
%a.dropdown-toggle#username{ :href => "#/" } %username%
%ul.dropdown-menu
%li
%a#preferences{ :href => "#" }= I18n.t 'global.settings'
%a#preferences{ :href => "#/settings/" }= I18n.t 'global.settings'
%li.divider
%li
%a#logout{ :href => "#" }= I18n.t 'global.logout'
%a#logout{ :href => "#/logout/" }= I18n.t 'global.logout'
.popover-wrapper
.popover.below#autocomplete-container
+1 -1
View File
@@ -1,4 +1,4 @@
%h1 Settings
%h1= I18n.t 'settings.title'
%ul.tabs#settings-tabs
%li.active
%a{ :href => "#", :'data-tab' => 'account' }= I18n.t 'settings.tab.account'