Datasets
diff --git a/ckan/templates/js_strings.html b/ckan/templates/js_strings.html
index 8986b03faa9..c693e96b2e2 100644
--- a/ckan/templates/js_strings.html
+++ b/ckan/templates/js_strings.html
@@ -15,9 +15,9 @@
*/
CKAN.Strings.checking = "${_('Checking...')}";
CKAN.Strings.urlIsTooShort = "${_('Type at least two characters...')}";
+ CKAN.Strings.urlIsUnchanged = "${_('This is the current URL.')}";
CKAN.Strings.urlIsAvailable = "${_('This URL is available!')}";
CKAN.Strings.urlIsNotAvailable = "${_('This URL is already used, please use a different one.')}";
- CKAN.Strings.bracketsNone = "${_('(none)')}";
CKAN.Strings.failedToSave = "${_('Failed to save, possibly due to invalid data ')}";
CKAN.Strings.addDataset = "${_('Add Dataset')}";
CKAN.Strings.addGroup = "${_('Add Group')}";
@@ -39,6 +39,7 @@
CKAN.Strings.url = "${_('Url')}";
CKAN.Strings.format = "${_('Format')}";
CKAN.Strings.resourceType = "${_('Resource Type')}";
+ CKAN.Strings.datastoreEnabled = "${_('DataStore enabled')}";
CKAN.Strings.sizeBracketsBytes = "${_('Size (Bytes)')}";
CKAN.Strings.mimetype = "${_('Mimetype')}";
CKAN.Strings.lastModified = "${_('Last Modified')}";
@@ -47,7 +48,6 @@
CKAN.Strings.id = "${_('ID')}";
CKAN.Strings.doneEditing = "${_('Done')}";
CKAN.Strings.resourceHasUnsavedChanges = "${_('This resource has unsaved changes.')}";
-
diff --git a/ckan/templates/layout_base.html b/ckan/templates/layout_base.html
index 22ea24cd58b..09d3a3e3b2a 100644
--- a/ckan/templates/layout_base.html
+++ b/ckan/templates/layout_base.html
@@ -31,6 +31,7 @@
+
@@ -46,7 +47,9 @@
+ ${request.environ.get('pylons.routes_dict', {}).get('controller').split(':')[-1]}
+ ${defined('body_class') and body_class()}
+ ">
First time at ${g.site_title}? Visit our About page to find out more.
@@ -210,16 +213,14 @@
-
-
-
+
+
diff --git a/ckan/templates/package/edit.html b/ckan/templates/package/edit.html
index 42e60447394..77f4fda2a4f 100644
--- a/ckan/templates/package/edit.html
+++ b/ckan/templates/package/edit.html
@@ -9,6 +9,7 @@
@@ -16,12 +17,10 @@
diff --git a/ckan/templates/package/editresources.html b/ckan/templates/package/editresources.html
new file mode 100644
index 00000000000..95810d3c1ee
--- /dev/null
+++ b/ckan/templates/package/editresources.html
@@ -0,0 +1,21 @@
+
+
+
${c.pkg.title or c.pkg.name} - Edit Resources - Datasets
+
Edit Resources: ${c.pkg.title or c.pkg.name}
+
+
+
+
+
+
+ ${c.form}
+
+
+
+
+
diff --git a/ckan/templates/package/layout.html b/ckan/templates/package/layout.html
index 70478f5d2e8..4f44c2803ac 100644
--- a/ckan/templates/package/layout.html
+++ b/ckan/templates/package/layout.html
@@ -9,26 +9,32 @@
- ${h.subnav_link(c, h.icon('package') + _('View'), controller='package', action='read', id=c.pkg.name)}
+
-
+
-
- ${h.icon('package-disabled') + _('Resources')}
+ ${h.icon('package-disabled') + _('Resources (0)')}
- -
-
-
-
-
- ${h.icon('package') + _('Resources')}
-
-
+
+
${h.icon('page_white_stack') + _('Resources') + ' (' + str(len(c.pkg_dict.get('resources',[]))) + ')'}
+
@@ -36,7 +42,7 @@
|
-
- ${h.subnav_link(c, h.icon('package_edit') + _('Edit'), controller='package', action='edit', id=c.pkg.name)}
+ ${h.subnav_link(c, h.icon('package_edit') + _('Settings'), controller='package', action='edit', id=c.pkg.name)}
-
diff --git a/ckan/templates/package/new.html b/ckan/templates/package/new.html
index 44fbf2261bd..85730c13bc0 100644
--- a/ckan/templates/package/new.html
+++ b/ckan/templates/package/new.html
@@ -6,11 +6,19 @@
Add - Datasets
Add a Dataset
+ no-sidebar
+
+
+
+
+
- ${h.literal(c.form)}
+ ${c.form}
diff --git a/ckan/templates/package/new_package_form.html b/ckan/templates/package/new_package_form.html
index e3d2d9927c3..54d41f04e12 100644
--- a/ckan/templates/package/new_package_form.html
+++ b/ckan/templates/package/new_package_form.html
@@ -9,7 +9,7 @@
Errors in form
The form contains invalid entries:
- - ${"%s: %s" % (key, error)}
+
- ${"%s: %s" % (key if not key=='Name' else 'URL', error)}
@@ -23,6 +23,7 @@ Errors in form
+
@@ -41,9 +42,10 @@ Errors in form
-
- ${h.url(controller='package', action='search')+'/'} (edit)
+ ${h.url(controller='package', action='search')+'/'} (edit)
+ Warning: URL is very long. Consider changing it to something shorter.
- 2+ characters, lowercase, using only 'a-z0-9' and '-_'
- ${errors.get('name', '')}
@@ -62,7 +64,7 @@ Errors in form
- - The licence under which the dataset is released.
+ - (Don't worry if you don't know which license the data has been released under).
@@ -78,63 +80,39 @@
Errors in form
- It is often displayed with the dataset title. In particular, it should start with a short sentence that describes the dataset succinctly, because the first few words alone may be used in some views of the datasets.
-->
-
-
-
-
-
-
+
+
+