Added vip feature.

This commit is contained in:
Martin Edenhofer 2015-02-06 16:19:07 +01:00
parent fa7926eee1
commit ec43a02588
3 changed files with 65 additions and 2 deletions

View file

@ -2492,6 +2492,11 @@ footer {
vertical-align: bottom; vertical-align: bottom;
} }
:not(.navigation) .avatar.vip {
border: 2px dotted;
border-color: #fff;
}
.avatar.size-50 { .avatar.size-50 {
width: 50px; width: 50px;
height: 50px; height: 50px;
@ -2515,16 +2520,30 @@ footer {
cursor: default; cursor: default;
} }
:not(.navigation) .unique.avatar.vip {
border: 2px dotted;
line-height: 40px;
}
.unique.avatar.size-50 { .unique.avatar.size-50 {
font-size: 16px; font-size: 16px;
line-height: 52px; line-height: 52px;
} }
:not(.navigation) .unique.avatar.size-50.vip {
line-height: 50px;
}
.unique.avatar.size-80 { .unique.avatar.size-80 {
font-size: 20px; font-size: 20px;
line-height: 84px; line-height: 84px;
} }
:not(.navigation) .unique.avatar.size-80.vip {
font-size: 20px;
line-height: 82px;
}
.sidebar { .sidebar {
width: 32%; width: 32%;
max-width: 300px; max-width: 300px;

View file

@ -463,6 +463,7 @@ class UpdateObjectManager2 < ActiveRecord::Migration
:maxlength => 100, :maxlength => 100,
:null => true, :null => true,
:autocomplete => 'off', :autocomplete => 'off',
:item_class => 'formGroup--halfSize',
}, },
:editable => false, :editable => false,
:active => true, :active => true,
@ -593,7 +594,6 @@ class UpdateObjectManager2 < ActiveRecord::Migration
:display => 'Active', :display => 'Active',
:data_type => 'boolean', :data_type => 'boolean',
:data_option => { :data_option => {
:maxlength => 250,
:null => true, :null => true,
:default => true, :default => true,
}, },

View file

@ -0,0 +1,44 @@
class CreateVip < ActiveRecord::Migration
def up
add_column :users, :vip, :boolean, :default => false
ObjectManager::Attribute.add(
:object => 'User',
:name => 'vip',
:display => 'VIP',
:data_type => 'boolean',
:data_option => {
:null => false,
:default => false,
:item_class => 'formGroup--halfSize',
:options => {
:false => 'no',
:true => 'yes',
},
:translate => true,
},
:editable => false,
:active => true,
:screens => {
:edit => {
:Admin => {
:null => false,
},
},
:view => {
'-all-' => {
:shown => false,
},
},
},
:pending_migration => false,
:position => 1490,
:created_by_id => 1,
:updated_by_id => 1,
)
end
def down
end
end