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

@ -2478,7 +2478,7 @@ footer {
.user-menu .dropdown-menu > li > a:hover {
color: #2594d4;
background: rgba(0,0,0,.05);
background: rgba(0,0,0,.05);
}
.avatar {
@ -2492,6 +2492,11 @@ footer {
vertical-align: bottom;
}
:not(.navigation) .avatar.vip {
border: 2px dotted;
border-color: #fff;
}
.avatar.size-50 {
width: 50px;
height: 50px;
@ -2515,16 +2520,30 @@ footer {
cursor: default;
}
:not(.navigation) .unique.avatar.vip {
border: 2px dotted;
line-height: 40px;
}
.unique.avatar.size-50 {
font-size: 16px;
line-height: 52px;
}
:not(.navigation) .unique.avatar.size-50.vip {
line-height: 50px;
}
.unique.avatar.size-80 {
font-size: 20px;
line-height: 84px;
}
:not(.navigation) .unique.avatar.size-80.vip {
font-size: 20px;
line-height: 82px;
}
.sidebar {
width: 32%;
max-width: 300px;

View file

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