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.
Include instructions on the main page of the sample repository #191
- Loading branch information
1 parent
a4221ea
commit d8d66af
Showing
3 changed files
with
87 additions
and
16 deletions.
There are no files selected for viewing
18 changes: 2 additions & 16 deletions
18
ckan/src/ckanext-igsn-theme/ckanext/igsn_theme/templates/header.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
37 changes: 37 additions & 0 deletions
37
ckan/src/ckanext-igsn-theme/ckanext/igsn_theme/templates/home/index.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,37 @@ | ||
{% ckan_extends %} | ||
{% block content %} | ||
<div class="homepage"> | ||
<div id="content" class="container"> | ||
{{ self.flash() }} | ||
</div> | ||
{% block primary_content %} | ||
<div class="main hero"> | ||
<div class="container"> | ||
<div class="module module-search module-narrow module-shallow box"> | ||
{% block search %} | ||
{% snippet 'home/snippets/search.html', search_facets=search_facets %} | ||
{% endblock %} | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="main "> | ||
<div class="container"> | ||
<div class="row row2"> | ||
<div class="col-md-6"> | ||
{% block promoted %} | ||
{% snippet 'home/snippets/promoted.html' %} | ||
{% endblock %} | ||
</div> | ||
<div class="col-md-6"> | ||
{% block instructions %} | ||
{% snippet 'home/snippets/instructions.html' %} | ||
{% endblock %} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
{% endblock %} | ||
</div> | ||
{% endblock %} |
48 changes: 48 additions & 0 deletions
48
ckan/src/ckanext-igsn-theme/ckanext/igsn_theme/templates/home/snippets/instructions.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,48 @@ | ||
{% set intro = g.site_intro_text %} | ||
|
||
<div class="module-promotion card box"> | ||
<div> | ||
{% if intro %} | ||
{{ h.render_markdown(intro) }} | ||
{% else %} | ||
<h1 class="page-heading">{{ _("Quick Start") }}</h1> | ||
<p>To register your samples with a new collection in the repository:</p> | ||
<ol> | ||
<li>Log in via (AAF)</li> | ||
<li>Submit a <a href="{{ h.url_for('igsn_theme.request_new_collection') }}">request</a> to create a sample collection</li> | ||
<li>You will be notified via email after the collection is created</li> | ||
<li>Select your <a href="{{ h.url_for('organization.index') }}">collection</a> and choose | ||
<span class="badge">Add Sample</span> / | ||
<span class="badge">Batch Upload Sample</span> | ||
</li> | ||
</ol> | ||
|
||
<p>To register your samples with an existing collection in the repository:</p> | ||
<ol> | ||
<li>Log in via (AAF)</li> | ||
<li>Select your <a href="{{ h.url_for('organization.index') }}">collection-of-interest</a></li> | ||
<li>Click | ||
<span class="badge">Add Sample</span> / | ||
<span class="badge">Batch Upload Sample</span> | ||
</li> | ||
</ol> | ||
{% endif %} | ||
</div> | ||
</div> | ||
|
||
<style> | ||
.badge { | ||
display: inline-block; | ||
padding: 0.25em 0.4em; | ||
font-size: 75%; | ||
font-weight: 400; | ||
line-height: 1; | ||
text-align: center; | ||
white-space: nowrap; | ||
vertical-align: baseline; | ||
border-radius: 0.25rem; | ||
background-color: var(--color-aus-royal-blue); | ||
margin-left: 5px; | ||
margin-right: 5px; | ||
} | ||
</style> |