format. migration

This commit is contained in:
j 2014-05-20 02:44:13 +02:00
parent 0815ccd930
commit ca4db4353d
3 changed files with 32 additions and 4 deletions

View File

@ -0,0 +1,26 @@
"""empty message
Revision ID: 4480ecc50e04
Revises: 3169519dc1e5
Create Date: 2014-05-20 02:20:20.283739
"""
# revision identifiers, used by Alembic.
revision = '4480ecc50e04'
down_revision = '3169519dc1e5'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Alembic - please adjust! ###
op.add_column('changelog', sa.Column('timestamp', sa.BigInteger(), nullable=True))
### end Alembic commands ###
def downgrade():
### commands auto generated by Alembic - please adjust! ###
op.drop_column('changelog', 'timestamp')
### end Alembic commands ###

View File

@ -29,7 +29,7 @@ oml.ui.browser = function() {
borderWidth: Math.round(size / 64) + 'px 0',
borderStyle: 'solid',
borderColor: 'rgba(' + color[2].join(', ') + ')',
margin: Math.round(size / 18) + 'px ' + Math.round(width / 2 - 14) + 'px',
margin: Math.round(size / 18) + 'px ' + Math.round(width / 2 - 8) + 'px',
fontSize: Math.round(size / 16) + 'px',
textAlign: 'center',
color: 'rgba(' + color[2].join(', ') + ')',

View File

@ -102,7 +102,7 @@ oml.ui.infoView = function(identifyData) {
function formatValue(value, key, join) {
value = Ox.encodeHTMLEntities(value);
return value ? (Ox.isArray(value) ? value : [value]).map(function(value) {
return key ?
return key && !identifyData ?
'<a href="/' + key + '==' + value + '">' + value + '</a>'
: value;
}).join(join || ', ') : '';
@ -269,6 +269,8 @@ oml.ui.infoView = function(identifyData) {
data = result.data;
}
Ox.print('BOOK DATA', data)
var $mediaButton,
isEditable = !data.mainid && data.mediastate == 'available',
src = !identifyData
@ -406,7 +408,7 @@ oml.ui.infoView = function(identifyData) {
textAlign: 'justify'
})
.html(
Ox.formatValue(data.classification, 'classification')
formatValue(data.classification, 'classification')
)
.appendTo($info);
}
@ -437,7 +439,7 @@ oml.ui.infoView = function(identifyData) {
})
.text(
[
data.extension.toUpperCase(),
(data.extension || '???').toUpperCase(), // FIXME
Ox.formatValue(data.size, 'B')
].join(', ')
)