Skip to content

Commit a176cf4

Browse files
committed
WIP: add override of "get started" jinja blocks
1 parent abd5f41 commit a176cf4

2 files changed

Lines changed: 47 additions & 0 deletions

File tree

invenio.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ VCS_PROVIDERS = [_vcs_gitlab]
110110
VCS_PROVIDER_CONFIG_DICT = {
111111
"gitlab": {}
112112
}
113+
VCS_TEMPLATE_INDEX = "cds_rdm/vcs/index.html"
113114

114115

115116
# Flask
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{#
2+
Copyright (C) 2025 CERN.
3+
4+
CDS-RDM is free software; you can redistribute it and/or modify it
5+
under the terms of the GPL-2.0 License; see LICENSE file for more details.
6+
#}
7+
8+
{%- extends "invenio_vcs/settings/index.html" %}
9+
10+
{%- block get_started %}
11+
<div class="ui grid">
12+
<div class="sixteen wide centered column">
13+
<h3 class="ui large header mt-10">
14+
<i class="{{ vocabulary["icon"] }} icon" aria-hidden="true"></i>{{ _("Get started") }}
15+
</h3>
16+
</div>
17+
18+
<div class="three column stackable tablet-mobile row">
19+
<div class="column">
20+
<h4 class="ui medium header">1 {{ _("Flip the switch") }}</h4>
21+
<div class="ui divider"></div>
22+
<p>
23+
{{ _('Select the repository you want to preserve, and toggle
24+
the switch below to turn on automatic preservation of your software.') }}
25+
</p>
26+
</div>
27+
28+
<div class="column">
29+
<h4 class="ui medium header">2 {{ _("Create a release") }}</h4>
30+
<div class="ui divider"></div>
31+
<p>
32+
{{ _('Go to %(name)s and <a href="https://help.github.com/articles/creating-releases" target="_blank">create a release <i class="small icon external" aria-hidden="true"></i></a>. %(site_name)s will automatically download a .zip-ball of each new release and publish a record.',
33+
name=vocabulary["name"], site_name=config.THEME_SITENAME | default('System')) }}
34+
</p>
35+
</div>
36+
37+
<div class="column">
38+
<h4 class="ui medium header">3 {{ _("Customize the metadata") }}</h4>
39+
<div class="ui divider"></div>
40+
<p>
41+
{{ _("On your first release, you'll need to manually assign a community to your repository by following the link in your email. You can also change other metadata or request a DOI.") }}
42+
</p>
43+
</div>
44+
</div>
45+
</div>
46+
{%- endblock %}

0 commit comments

Comments
 (0)