Skip to content

Commit

Permalink
ckan#2871: rename the template directory so that the controller urls …
Browse files Browse the repository at this point in the history
…match in ckan-admin
  • Loading branch information
Zharktas committed Feb 23, 2016
1 parent cf8a924 commit d83300e
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions ckan/controllers/admin.py
Expand Up @@ -77,7 +77,7 @@ def reset_config(self):
app_globals.reset()
h.redirect_to(controller='admin', action='config')

return base.render('admin/confirm_reset.html')
return base.render('ckan-admin/confirm_reset.html')

def config(self):

Expand All @@ -101,7 +101,7 @@ def config(self):
error_summary = e.error_summary
vars = {'data': data, 'errors': errors,
'error_summary': error_summary, 'form_items': items}
return base.render('admin/config.html', extra_vars=vars)
return base.render('ckan-admin/config.html', extra_vars=vars)

h.redirect_to(controller='admin', action='config')

Expand All @@ -111,14 +111,14 @@ def config(self):
data[key] = config.get(key)

vars = {'data': data, 'errors': {}, 'form_items': items}
return base.render('admin/config.html',
return base.render('ckan-admin/config.html',
extra_vars=vars)

def index(self):
#now pass the list of sysadmins
c.sysadmins = [a.name for a in get_sysadmins()]

return base.render('admin/index.html')
return base.render('ckan-admin/index.html')


def trash(self):
Expand All @@ -128,7 +128,7 @@ def trash(self):
model.Package).filter_by(state=model.State.DELETED)
if not request.params or (len(request.params) == 1 and '__no_cache__'
in request.params):
return base.render('admin/trash.html')
return base.render('ckan-admin/trash.html')
else:
# NB: we repeat retrieval of of revisions
# this is obviously inefficient (but probably not *that* bad)
Expand Down
2 changes: 1 addition & 1 deletion ckan/lib/helpers.py
Expand Up @@ -585,7 +585,7 @@ def build_nav(menu_item, title, **kw):


def build_extra_admin_nav():
'''Build extra navigation items used in ``admin/base.html`` for values
'''Build extra navigation items used in ``ckan-admin/base.html`` for values
defined in the config option ``ckan.admin_tabs``. Typically this is
populated by extensions.
Expand Down
File renamed without changes.
@@ -1,6 +1,6 @@
{% import 'macros/autoform.html' as autoform %}

{% extends "admin/base.html" %}
{% extends "ckan-admin/base.html" %}

{% import 'macros/form.html' as form %}

Expand Down
@@ -1,4 +1,4 @@
{% extends "admin/base.html" %}
{% extends "ckan-admin/base.html" %}

{% block subtitle %}{{ _("Confirm Reset") }}{% endblock %}

Expand Down
@@ -1,4 +1,4 @@
{% extends "admin/base.html" %}
{% extends "ckan-admin/base.html" %}

{% block primary_content_inner %}
<ul class="user-list">
Expand Down
@@ -1,4 +1,4 @@
{% extends "admin/base.html" %}
{% extends "ckan-admin/base.html" %}

{% block primary_content_inner %}
{% set truncate = truncate or 180 %}
Expand Down
@@ -1,4 +1,4 @@
{% extends "admin/base.html" %}
{% extends "ckan-admin/base.html" %}

{% block primary_content_inner %}
<h1>{{ title }}</h1>
Expand Down

0 comments on commit d83300e

Please sign in to comment.