|
a/Allura/allura/model/repo.py |
|
b/Allura/allura/model/repo.py |
|
... |
|
... |
552 |
return True
|
552 |
return True
|
553 |
return False
|
553 |
return False
|
554 |
|
554 |
|
555 |
@property
|
555 |
@property
|
556 |
def has_html_view(self):
|
556 |
def has_html_view(self):
|
557 |
if self.content_type.startswith('text/') or \
|
557 |
if (self.content_type.startswith('text/') or
|
558 |
self.extension in VIEWABLE_EXTENSIONS or\
|
558 |
self.extension in VIEWABLE_EXTENSIONS or
|
559 |
self.extension in self.repo._additional_viewable_extensions or\
|
559 |
self.extension in self.repo._additional_viewable_extensions or
|
560 |
utils.is_text_file(self.text):
|
560 |
utils.is_text_file(self.text)):
|
561 |
return True
|
561 |
return True
|
562 |
return False
|
562 |
return False
|
563 |
|
563 |
|
564 |
@property
|
564 |
@property
|
565 |
def has_image_view(self):
|
565 |
def has_image_view(self):
|