def content_actions(self): return [ Action(name=_('Overviews'), description=_('View overviews (login required).'), url=reverse('ddsc_management.overviews'), icon=''), Action(name=_('Admin'), description=_('Manage the database (login required).'), url=reverse('admin:index'), icon=''), ]
def content_actions(self): """Strip out the date range selector if we're not logged in.""" actions = super(DefaultView, self).content_actions if not self.user_logged_in(): # Strip out the date range selector. actions = [ action for action in actions if action.klass not in ['popup-date-range', 'map-load-default-location'] ] zoom_to_default = Action( name='', description=_('Zoom to default location'), url=reverse('lizard_map.map_location_load_default'), icon='icon-globe', klass='map-load-default-location') actions.insert(0, zoom_to_default) geolocation = Action(name='', description=('Zoom to geo location'), url="", icon='icon-screenshot', klass='geolocation-btn') actions.insert(0, geolocation) return actions
def content_actions(self): """ Add button for elevation profile """ actions = super(ElevationProfile, self).content_actions activate_elevationprofile = Action( name='', description=_('Draw a line to select an elevation profile'), url="javascript:void(null)", icon='icon-bar-chart', klass='map-elevationprofile') actions.insert(0, activate_elevationprofile) return actions
def breadcrumbs(self): return [Action(name='Neerslagradar', url='/')]
# TODO: Put your real url here to configure Sentry. # override me in localsettings SENTRY_DSN = None # override me in localsettings UI_GAUGES_SITE_ID = '' LIZARD_SITE = 'http://dijkdata.nl/' MANAGEMENT_SITE = 'http://beheer.dijkdata.nl/' UI_SITE_ACTIONS = [ Action( name="Kaart", url=LIZARD_SITE + '#map', # description="", # icon="icon-info-sign", # klass="has_popover_south" ), Action( name="Grafieken", url=LIZARD_SITE + '#graphs', ), Action( name="Beheer", url=MANAGEMENT_SITE, # description="", # icon="icon-info-sign", # klass="has_popover_south" ), ]