diff --git a/HISTORY.rst b/HISTORY.rst index 8bbabcf120..7f2afdeaa7 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -14,6 +14,8 @@ - Appearance: Allow subclassing the text area widget. - Documents: Add transformation support to document image API with serialized transformations. +- Documents: Add icons to the document page image and document page reset + views. 3.1.9 (2018-11-01) ================== diff --git a/mayan/apps/documents/icons.py b/mayan/apps/documents/icons.py index b79934b0ec..2b9183f1a0 100644 --- a/mayan/apps/documents/icons.py +++ b/mayan/apps/documents/icons.py @@ -52,13 +52,18 @@ icon_document_page_rotate_left = Icon( icon_document_page_rotate_right = Icon( driver_name='fontawesome', symbol='redo' ) +icon_document_page_view = Icon( + driver_name='fontawesome', symbol='image' +) +icon_document_page_view_reset = Icon( + driver_name='fontawesome', symbol='sync' +) icon_document_page_zoom_in = Icon( driver_name='fontawesome', symbol='search-plus' ) icon_document_page_zoom_out = Icon( driver_name='fontawesome', symbol='search-minus' ) - icon_document_pages = Icon(driver_name='fontawesome', symbol='copy') icon_document_preview = Icon(driver_name='fontawesome', symbol='eye') icon_document_properties = Icon(driver_name='fontawesome', symbol='info') diff --git a/mayan/apps/documents/links.py b/mayan/apps/documents/links.py index 3d05d4c352..255ba8afaf 100644 --- a/mayan/apps/documents/links.py +++ b/mayan/apps/documents/links.py @@ -14,7 +14,8 @@ from .icons import ( icon_document_page_navigation_first, icon_document_page_navigation_last, icon_document_page_navigation_next, icon_document_page_navigation_previous, icon_document_page_return, icon_document_page_rotate_left, - icon_document_page_rotate_right, icon_document_page_zoom_in, + icon_document_page_rotate_right, icon_document_page_view, + icon_document_page_view_reset, icon_document_page_zoom_in, icon_document_page_zoom_out, icon_document_pages, icon_document_preview, icon_document_properties, icon_document_type_create, icon_document_type_delete, icon_document_type_edit, @@ -286,10 +287,12 @@ link_document_page_rotate_right = Link( text=_('Rotate right'), view='documents:document_page_rotate_right', ) link_document_page_view = Link( + icon_class=icon_document_page_view, permissions=(permission_document_view,), text=_('Page image'), view='documents:document_page_view', args='resolved_object.pk' ) link_document_page_view_reset = Link( + icon_class=icon_document_page_view_reset, permissions=(permission_document_view,), text=_('Reset view'), view='documents:document_page_view_reset', args='resolved_object.pk' )