Skip to content

Commit

Permalink
[2375] Remove "dumps_url" from package.py
Browse files Browse the repository at this point in the history
Now using "config" template variable.
  • Loading branch information
aron committed May 14, 2012
1 parent 29d27cf commit 2d130eb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions ckan/controllers/package.py
Expand Up @@ -173,10 +173,6 @@ def pager_url(q=None, page=None):

c.search_url_params = urlencode(_encode_params(params_nopage))

# Extracted from package/search.html template.
c.dumps_url = config.get('ckan.dumps_url')
c.dumps_format = config.get('ckan.dumps_format', '')

try:
c.fields = []
search_extras = {}
Expand Down
2 changes: 1 addition & 1 deletion ckan/templates/package/search.html
Expand Up @@ -60,7 +60,7 @@
<small class="content">
You can also access this registry using the ${h.link_to(_('API'), h.url_for(controller='api', action='get_api', id=None, ver=1))}
(see ${h.link_to(_('API Docs'), 'http://docs.ckan.org/en/latest/api.html')})
<py:if test="c.dumps_url">or download a <a href="${c.dumps_url}">full ${dumps_format} dump</a></py:if>.
<py:if test="config.get('ckan.dumps_url')">or download a <a href="${config.get('ckan.dumps_url')}">full ${config.get('ckan.dumps_format', '')} dump</a></py:if>.
</small>
</section>
</content>
Expand Down

0 comments on commit 2d130eb

Please sign in to comment.