forked from ckan/ckan-docker
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjust layout to utilize full width for content display. Show seconda…
…ry panel only for dataset and filtering purposes.
- Loading branch information
1 parent
f6dc722
commit 1d27946
Showing
2 changed files
with
80 additions
and
0 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
64 changes: 64 additions & 0 deletions
64
ckan/src/ckanext-igsn-theme/ckanext/igsn_theme/templates/page.html
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,64 @@ | ||
{% ckan_extends %} | ||
|
||
{% set display_secondary = not (h.is_creating_or_editing_dataset() or h.is_creating_or_editing_org())%} | ||
|
||
{% block secondary %} | ||
{% if display_secondary %} | ||
<aside class="secondary col-md-3"> | ||
{# | ||
The secondary_content block can be used to add content to the | ||
sidebar of the page. This is the main block that is likely to be | ||
used within a template. | ||
|
||
Example: | ||
|
||
{% block secondary_content %} | ||
<h2>A sidebar item</h2> | ||
<p>Some content for the item</p> | ||
{% endblock %} | ||
#} | ||
{% block secondary_content %}{% endblock %} | ||
</aside> | ||
{% endif %} | ||
{% endblock %} | ||
|
||
{% block primary %} | ||
<div class="primary {% if not display_secondary %}col-md-12{% else %}col-md-9{% endif %} col-xs-12" role="main"> | ||
{# | ||
The primary_content block can be used to add content to the page. | ||
This is the main block that is likely to be used within a template. | ||
|
||
Example: | ||
|
||
{% block primary_content %} | ||
<h1>My page content</h1> | ||
<p>Some content for the page</p> | ||
{% endblock %} | ||
#} | ||
{% block primary_content %} | ||
<article class="module"> | ||
{% block page_header %} | ||
<header class="module-content page-header"> | ||
{% if self.content_action() | trim %} | ||
<div class="content_action"> | ||
{% block content_action %}{% endblock %} | ||
</div> | ||
{% endif %} | ||
<ul class="nav nav-tabs"> | ||
{% block content_primary_nav %}{% endblock %} | ||
</ul> | ||
</header> | ||
{% endblock %} | ||
<div class="module-content"> | ||
{% if self.page_primary_action() | trim %} | ||
<div class="page_primary_action"> | ||
{% block page_primary_action %}{% endblock %} | ||
</div> | ||
{% endif %} | ||
{% block primary_content_inner %} | ||
{% endblock %} | ||
</div> | ||
</article> | ||
{% endblock %} | ||
</div> | ||
{% endblock %} |