-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Photo collection #24
base: master
Are you sure you want to change the base?
Photo collection #24
Conversation
…into idol-collection adding updates from idol-model following review of idol-model pull request
…ant before views are added
…er event and photoset models are added
…into idol-collection merging in typo fix
… photo-model merging idol model changes from master
… idol-collection merging idol model from master
…s without breaking stuff, so taking it back out
…Love into photo-collection Merging in idol-collection
… photo-collection
|
||
PHOTOS_EXCLUDE = [ | ||
'i_skill_type', 'i_leader_skill_stat', 'leader_skill_percentage', 'skill_note_count', 'skill_percentage', 'i_sub_skill_type', 'sub_skill_amount', 'sub_skill_percentage', | ||
] + [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you have it in 2 concatenated lists instead of a single list? 🤔
title = _('Photo') | ||
plural_title = _('Photos') | ||
icon = 'cards' | ||
navbar_title = _('Photos') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you don't need to specify the navbar title if it's the same as the plural title, it will just use it.
def to_fields(self, view, item, *args, **kwargs): | ||
_photo_images = PHOTO_IMAGES.copy() | ||
_photo_images.update({'color': '{static_url}img/color/{value}.png'.format(**{'value':item.color, 'static_url':RAW_CONTEXT['static_url']}), | ||
'rarity': '{static_url}img/rarity/{value}.png'.format(**{'value':item.rarity, 'static_url':RAW_CONTEXT['static_url']})}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can use staticImageURL in magi.utils here!
Adding photo collection, switched mic.png to a bigger version