<%! title = 'Browse SplunkBase' %> <%def name="prepareRemotePath(category, subcategory, page, offset)"> <% query = [] if page: query.append('page=%s' % page) if offset: query.append('offset=%s' % offset) if subcategory: category = subcategory if category is not None and category is not 'All': query.append('category=%s' % category) if query: return '?' + '&'.join(query) else: return '' %> <%inherit file="../layout/admin.html" /> <%namespace name="helpers" file="../admin/_helpers.html"/> <% from splunk.appserver.mrsparkle.lib.msg_pool import MsgPoolMgr, UI_MSG_POOL msg_obj = MsgPoolMgr.get_poolmgr_instance()[UI_MSG_POOL].pop(msgid) %> % if msg_obj: <%helpers:message content="${msg_obj.text}" level="${msg_obj.severity}"/> % endif

${_('Browse SplunkBase')}

${_('Click any "Install" button to log into SplunkBase and download the associated app.')} % if message:

${_('Error:')} ${message}

% endif

${_('Categories:')}

  • % if selectedCat == 'All': All % else: All % endif
  • % if cats: % for cat in cats: % if cat['encodedName'] == selectedCat: % if selectedSubcat:
  • ${cat['title']}
  • % else:
  • ${cat['title']}
  • % endif % if cat['children'] is not None:
      % for subcat in cat['children']: % if subcat['encodedName'] == selectedSubcat:
    • ${subcat['title']}
    • % else:
    • ${subcat['title']}
    • % endif % endfor
    % endif % else:
  • ${cat['title']}
  • % endif % endfor % endif

${selectedCat} % if selectedSubcat: / ${selectedSubcat} % endif

% if apps: <% i=0 %> % for app in apps:
${app['title']}
${app.summary}
<%doc>TRANS: Author of an app${_('Author:')} ${app.owner} <%doc>TRANS: Type of app${_('Type:')} ${', '.join(app['types'])}
<%doc>TRANS: Rating of app${_('Rating:')} % if app['rating'] != 'No Data': ${app['rating'] } ## for star in xrange(round(eval(app['rating']))-1): ##
*
## endfor ## if eval(app['rating']) - round(eval(app['rating'] )): ##
+
## endif % else: None % endif (${app['ratingCount']} votes)
<%doc>TRANS: Date app was added:${_('Added:')} ${app['dateAdded']}
<%doc>TRANS: Number of times app was downloaded${_('Downloads:')} ${app['downloads']} <%doc>TRANS: Date app was last updated${_('Last updated:')} ${app['dateUpdated']}
${_('License:')} ${app['license']} ${_('Price:')} % if app['price'] is not None: % if app['price'].startswith('Email'): ${_('Email %(email_address)s for pricing.') % dict(email_address='sales@splunk.com')} % else: ${app['price']} % endif % endif
% if app['price'] is not None and 'free' in app['price'].lower():

% endif
<% i=i+1 %> % endfor % endif