-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#626] Tweaks dashboard to have 3 new subpages
A my datasets, my orgs and my groups pages. Each one showing ownership of the relevant items within it. Conflicts: ckan/templates/user/dashboard.html
- Loading branch information
1 parent
2676bb2
commit f7ec8a8
Showing
8 changed files
with
162 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{% extends "user/dashboard.html" %} | ||
|
||
{% block dashboard_activity_stream_context %}{% endblock %} | ||
|
||
{% block add_action_content %} | ||
{% if h.check_access('package_create') %} | ||
<li>{% link_for _('Add Dataset'), controller='package', action='new', class_="btn btn-primary", icon="plus-sign-alt" %}</li> | ||
{% endif %} | ||
{% endblock %} | ||
|
||
{% block primary_content_inner %} | ||
<h2 class="page-heading">{{ _('My Datasets') }}</h2> | ||
{% if c.user_dict.datasets %} | ||
{% snippet 'snippets/package_list.html', packages=c.user_dict.datasets %} | ||
{% else %} | ||
<p class="empty"> | ||
{{ _('You haven\'t created any datasets.') }} | ||
{% if h.check_access('package_create') %} | ||
{% link_for _('Create one now?'), controller='package', action='new' %} | ||
{% endif %} | ||
</p> | ||
{% endif %} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{% extends "user/dashboard.html" %} | ||
|
||
{% block dashboard_activity_stream_context %}{% endblock %} | ||
|
||
{% block add_action_content %} | ||
{% if h.check_access('group_create') %} | ||
<li>{% link_for _('Add Group'), controller='group', action='new', class_="btn btn-primary", icon="plus-sign-alt" %}</li> | ||
{% endif %} | ||
{% endblock %} | ||
|
||
{% block primary_content_inner %} | ||
<h2 class="page-heading">{{ _('My Groups') }}</h2> | ||
{% if c.groups %} | ||
{% snippet "group/snippets/group_list.html", groups=c.groups %} | ||
{% else %} | ||
<p class="empty"> | ||
{{ _('You are not a member of any groups.') }} | ||
{% if h.check_access('group_create') %} | ||
{% link_for _('Create one now?'), controller='group', action='new' %} | ||
{% endif %} | ||
</p> | ||
{% endif %} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{% extends "user/dashboard.html" %} | ||
|
||
{% block dashboard_activity_stream_context %}{% endblock %} | ||
|
||
{% block add_action_content %} | ||
{% if h.check_access('organization_create') %} | ||
<li>{% link_for _('Add Organization'), controller='organization', action='new', class_="btn btn-primary", icon="plus-sign-alt" %}</li> | ||
{% endif %} | ||
{% endblock %} | ||
|
||
{% block primary_content_inner %} | ||
<h2 class="page-heading">{{ _('My Organizations') }}</h2> | ||
{% if c.organizations %} | ||
{% snippet "organization/snippets/organization_list.html", organizations=c.organizations %} | ||
{% else %} | ||
<p class="empty"> | ||
{{ _('You are not a member of any organizations.') }} | ||
{% if h.check_access('organization_create') %} | ||
{% link_for _('Create one now?'), controller='organization', action='new' %} | ||
{% endif %} | ||
</p> | ||
{% endif %} | ||
{% endblock %} |