Jump to >

reviewboard.reviews.ui.image

class ImageReviewUI(review_request, obj)[source]

Bases: reviewboard.reviews.ui.base.FileAttachmentReviewUI

name = u'Image'[source]
supported_mimetypes = [u'image/*'][source]
allow_inline = True[source]
supports_diffing = True[source]
js_model_class = u'RB.ImageReviewable'[source]
js_view_class = u'RB.ImageReviewableView'[source]
get_page_cover_image_url()[source]

Return the URL to an image used to depict this on other sites.

The returned image URL will be used for services like Facebook, Slack, Twitter, etc. when linking to this file attachment.

Returns:The absolute URL to an image used to depict this file attachment.
Return type:unicode
get_js_model_data()[source]
serialize_comments(comments)[source]
get_comment_thumbnail(comment)[source]