Skip to content

Commit

Permalink
Include instructions on the main page of the sample repository #191
Browse files Browse the repository at this point in the history
  • Loading branch information
NTaherifar committed May 28, 2024
1 parent a4221ea commit d8d66af
Show file tree
Hide file tree
Showing 3 changed files with 87 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -1,29 +1,15 @@
{% ckan_extends %}

<a class="btn btn-primary" data-module="modal-contact" data-module-template="" href="" title="">
<i class="fas fa-envelope"></i>
</a>

{% asset 'ckanext-contact/main' %}

{% block header_site_navigation_tabs %}
{% set org_type = h.default_group_type('organization') %}
{% set group_type = h.default_group_type('group') %}

{{ h.build_nav_main(
(dataset_type ~ '.search', h.humanize_entity_type('package', dataset_type, 'main nav') or _('Samples'), ["dataset","resource"]),
(org_type ~ '.index', h.humanize_entity_type('organization', org_type, 'main nav') or _('Collections'), ['organization']),
(dataset_type ~ '.search', h.humanize_entity_type('package', dataset_type, 'main nav') or _('Samples'), ["dataset","resource"]),
('home.about', _('About')) )
}}
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
{{ _('Help') }} <b class="caret"></b>
</a>
<ul class="dropdown-menu">
<li><a href="#">{{ _('User Manual haha') }}</a></li>
<li><a href="#">{{ _('Data Deposit Guidelines') }}</a></li>
</ul>
</li>

{% endblock %}

{% block header_logo %}
Expand Down
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 %}
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>

0 comments on commit d8d66af

Please sign in to comment.