Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ckanext-odsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Open-Data
ckanext-odsh
Commits
9e8024ea
Commit
9e8024ea
authored
6 years ago
by
anonymous
Browse files
Options
Downloads
Patches
Plain Diff
Reverts start page (index.html), fixes Organizations-Tab.
parent
1febf043
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
ckanext/odsh/plugin.py
+4
-1
4 additions, 1 deletion
ckanext/odsh/plugin.py
ckanext/odsh/templates/home/index.html
+0
-8
0 additions, 8 deletions
ckanext/odsh/templates/home/index.html
with
4 additions
and
9 deletions
ckanext/odsh/plugin.py
+
4
−
1
View file @
9e8024ea
...
@@ -76,6 +76,9 @@ class OdshPlugin(plugins.SingletonPlugin, DefaultTranslation, DefaultDatasetForm
...
@@ -76,6 +76,9 @@ class OdshPlugin(plugins.SingletonPlugin, DefaultTranslation, DefaultDatasetForm
def
dataset_facets
(
self
,
facets_dict
,
package_type
):
def
dataset_facets
(
self
,
facets_dict
,
package_type
):
return
OrderedDict
({
'
groups
'
:
_
(
'
Groups
'
)})
return
OrderedDict
({
'
groups
'
:
_
(
'
Groups
'
)})
def
organization_facets
(
self
,
facets_dict
,
organization_type
,
package_type
):
return
facets_dict
def
group_facets
(
self
,
facets_dict
,
group_type
,
package_type
):
def
group_facets
(
self
,
facets_dict
,
group_type
,
package_type
):
return
facets_dict
return
facets_dict
...
...
This diff is collapsed.
Click to expand it.
ckanext/odsh/templates/home/index.html
+
0
−
8
View file @
9e8024ea
{% ckan_extends %}
{% ckan_extends %}
{% block primary_content %}
<h3>
Most popular groups
</h3>
<ul>
{% for group in h.odsh_main_groups() %}
<li>
{{ group.display_name }}
</li>
{% endfor %}
</ul>
{% endblock %}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment