Browse Source

[notebook] Fix the Notebook links on the Home page

Note that the icons look like the Spark icon currently
Romain Rigaux 10 năm trước cách đây
mục cha
commit
261fefa

+ 1 - 1
desktop/core/src/desktop/models.py

@@ -569,7 +569,7 @@ class Document(models.Model):
       elif self.extra == 'bundle2':
         return staticfiles_storage.url('oozie/art/icon_oozie_bundle_48.png')
       elif self.extra == 'notebook':
-        return staticfiles_storage.url('notebook/art/icon_spark_48.png')
+        return staticfiles_storage.url('notebook/art/icon_notebook_48.png')
       elif self.extra.startswith('search'):
         return staticfiles_storage.url('search/art/icon_search_48.png')
       elif self.content_type.app_label == 'beeswax':

+ 1 - 1
desktop/core/src/desktop/templates/home.mako

@@ -116,7 +116,7 @@ ${ commonheader(_('Welcome Home'), "home", user) | n,unicode }
                   <li><a href="${ url('pig:index') }"><img src="${ static(apps['pig'].icon_path) }" class="app-icon"/> ${_('Pig Script')}</a></li>
                 % endif
                 % if 'spark' in apps:
-                  <li><a href="${ url('spark:index') }"><img src="${ static(apps['spark'].icon_path) }" class="app-icon"/> ${_('Spark Job')}</a></li>
+                  <li><a href="${ url('notebook:index') }"><img src="${ static(apps['spark'].icon_path) }" class="app-icon"/> ${_('Spark Job')}</a></li>
                 % endif
                 % if 'oozie' in apps:
                 <li class="dropdown-submenu">

BIN
desktop/libs/notebook/src/notebook/static/notebook/art/icon_notebook_48.png