Update history app's icon
This commit is contained in:
@@ -2,8 +2,8 @@ from __future__ import absolute_import
|
|||||||
|
|
||||||
from django.utils.translation import ugettext_lazy as _
|
from django.utils.translation import ugettext_lazy as _
|
||||||
|
|
||||||
from app_registry.models import App
|
#from app_registry.models import App
|
||||||
from app_registry.classes import ModelBackup
|
#from app_registry.classes import ModelBackup
|
||||||
from common.utils import encapsulate
|
from common.utils import encapsulate
|
||||||
from navigation.api import bind_links, register_model_list_columns
|
from navigation.api import bind_links, register_model_list_columns
|
||||||
from project_tools.api import register_tool
|
from project_tools.api import register_tool
|
||||||
@@ -31,10 +31,10 @@ register_model_list_columns(History, [
|
|||||||
|
|
||||||
bind_links([History], [history_details])
|
bind_links([History], [history_details])
|
||||||
|
|
||||||
try:
|
#try:
|
||||||
app = App.register('history', _(u'History'))
|
# app = App.register('history', _(u'History'))
|
||||||
except App.UnableToRegister:
|
#except App.UnableToRegister:
|
||||||
pass
|
# pass
|
||||||
else:
|
#else:
|
||||||
app.set_backup([ModelBackup()])
|
# app.set_backup([ModelBackup()])
|
||||||
app.set_dependencies(['app_registry'])
|
# app.set_dependencies(['app_registry'])
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
|
from icons.literals import BOOK_OPEN, BOOK
|
||||||
|
from icons import Icon
|
||||||
|
|
||||||
|
icon_history_list = Icon(BOOK)
|
||||||
|
icon_history_details = Icon(BOOK_OPEN)
|
||||||
|
|
||||||
@@ -5,6 +5,7 @@ from django.utils.translation import ugettext_lazy as _
|
|||||||
from navigation.api import Link
|
from navigation.api import Link
|
||||||
|
|
||||||
from .permissions import PERMISSION_HISTORY_VIEW
|
from .permissions import PERMISSION_HISTORY_VIEW
|
||||||
|
from .icons import icon_history_list, icon_history_details
|
||||||
|
|
||||||
history_list = Link(text=_(u'history'), view='history_list', sprite='book', icon='book.png', permissions=[PERMISSION_HISTORY_VIEW], children_view_regex=[r'history_[l,v]'])
|
history_list = Link(text=_(u'history'), view='history_list', icon=icon_history_list, permissions=[PERMISSION_HISTORY_VIEW], children_view_regex=[r'history_[l,v]'])
|
||||||
history_details = Link(text=_(u'details'), view='history_view', sprite='book_open', args='object.pk', permissions=[PERMISSION_HISTORY_VIEW])
|
history_details = Link(text=_(u'details'), view='history_view', icon=icon_history_details, args='object.pk', permissions=[PERMISSION_HISTORY_VIEW])
|
||||||
|
|||||||
@@ -6,6 +6,8 @@ DEFAULT_ICON_SET = 'fat_cow'
|
|||||||
|
|
||||||
APPLICATION_VIEW_ICONS = 'application_view_icons'
|
APPLICATION_VIEW_ICONS = 'application_view_icons'
|
||||||
BLACKBOARD_SUM = 'blackboard_sum'
|
BLACKBOARD_SUM = 'blackboard_sum'
|
||||||
|
BOOK = 'book'
|
||||||
|
BOOK_OPEN = 'book_open'
|
||||||
CD_BURN = 'cd_burn'
|
CD_BURN = 'cd_burn'
|
||||||
COG = 'cog'
|
COG = 'cog'
|
||||||
COMPUTER_KEY = 'computer_key'
|
COMPUTER_KEY = 'computer_key'
|
||||||
|
|||||||
@@ -9,6 +9,8 @@ LABEL = _(u'Fat cow')
|
|||||||
DICTIONARY = {
|
DICTIONARY = {
|
||||||
APPLICATION_VIEW_ICONS: 'application_view_icons.png',
|
APPLICATION_VIEW_ICONS: 'application_view_icons.png',
|
||||||
BLACKBOARD_SUM: 'blackboard_sum.png',
|
BLACKBOARD_SUM: 'blackboard_sum.png',
|
||||||
|
BOOK: 'book.png',
|
||||||
|
BOOK_OPEN: 'book_open.png',
|
||||||
CD_BURN: 'cd_burn.png',
|
CD_BURN: 'cd_burn.png',
|
||||||
COG: 'cog.png',
|
COG: 'cog.png',
|
||||||
COMPUTER_KEY: 'computer_key.png',
|
COMPUTER_KEY: 'computer_key.png',
|
||||||
|
|||||||
Reference in New Issue
Block a user