Skip to content

Commit

Permalink
reformat tour help in templates (#1102)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikkonie committed Aug 16, 2023
1 parent c4b1732 commit 9f44e84
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 25 deletions.
5 changes: 0 additions & 5 deletions projectroles/templates/projectroles/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,12 @@ <h2 class="sodar-pr-content-title pt-2">Home</h2>

{% block javascript %}
{{ block.super }}

<!-- Project list -->
<script type="text/javascript" src="{% static 'projectroles/js/project_list.js' %}"></script>

<!-- Tour content -->
<script type="text/javascript">
tourEnabled = true;

tour.addStep('home_project', {
title: 'Available ' +
'{% get_display_name 'PROJECT' title=True plural=True %}',
Expand All @@ -55,7 +53,6 @@ <h2 class="sodar-pr-content-title pt-2">Home</h2>
advanceOn: '.docs-link click',
showCancelLink: true
});

tour.addStep('home_filter', {
title: 'Filter ' +
'{% get_display_name 'PROJECT' title=True plural=True %} List',
Expand All @@ -65,7 +62,6 @@ <h2 class="sodar-pr-content-title pt-2">Home</h2>
advanceOn: '.docs-link click',
showCancelLink: true
});

tour.addStep('home_star', {
title: 'View Starred ' +
'{% get_display_name 'PROJECT' title=True plural=True %}',
Expand All @@ -76,7 +72,6 @@ <h2 class="sodar-pr-content-title pt-2">Home</h2>
advanceOn: '.docs-link click',
showCancelLink: true
});

if ($('#sodar-pr-home-link-create').length) {
tour.addStep('home_create', {
title: 'Create {% get_display_name 'PROJECT' title=True %}',
Expand Down
10 changes: 0 additions & 10 deletions projectroles/templates/projectroles/project_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -142,19 +142,16 @@ <h4>

{% block javascript %}
{{ block.super }}

{% if object.type == 'CATEGORY' %}
<!-- Project list -->
<script type="text/javascript" src="{% static 'projectroles/js/project_list.js' %}"></script>
{% endif %}

<!-- Project starring -->
<script type="text/javascript" src="{% static 'projectroles/js/project_star.js' %}"></script>

<!-- Tour content -->
<script type="text/javascript">
tourEnabled = true;

if ($('#sodar-pr-project-list').length) {
tour.addStep('project_type_note', {
title: 'Note on ' +
Expand All @@ -169,7 +166,6 @@ <h4>
showCancelLink: true
});
}

tour.addStep('project_nav', {
title: '{% get_display_name 'PROJECT' title=True %} Sidebar',
text: 'From this sidebar you can access apps and actions of the ' +
Expand All @@ -178,7 +174,6 @@ <h4>
advanceOn: '.docs-link click',
showCancelLink: true
});

if ($('#sodar-pr-details-card-remote').length) {
tour.addStep('project_remote_card', {
title: 'Links to {% get_display_name 'PROJECT' title=True %} on ' +
Expand All @@ -191,7 +186,6 @@ <h4>
showCancelLink: true
});
}

if ($('#sodar-pr-details-card-readme').length) {
tour.addStep('project_readme_card', {
title: '{% get_display_name 'PROJECT' title=True %} README',
Expand All @@ -203,7 +197,6 @@ <h4>
showCancelLink: true
});
}

if ($('#sodar-pr-project-list').length) {
tour.addStep('project_list', {
title: '{% get_display_name 'PROJECT' title=True %} List',
Expand All @@ -216,7 +209,6 @@ <h4>
showCancelLink: true
});
}

if ($('.sodar-pr-app-card').length) {
tour.addStep('project_app_cards', {
title: '{% get_display_name 'PROJECT' title=True %} App Overviews',
Expand All @@ -227,7 +219,6 @@ <h4>
showCancelLink: true
});
}

tour.addStep('project_star', {
title: '{% get_display_name 'PROJECT' title=True %} Starring',
text: 'Using this link you can "star" a ' +
Expand All @@ -241,7 +232,6 @@ <h4>
advanceOn: '.docs-link click',
showCancelLink: true
});

if ($('#sodar-pr-btn-copy-uuid').length) {
tour.addStep('project_copy_uuid', {
title: 'Copy {% get_display_name 'PROJECT' title=True %} UUID',
Expand Down
5 changes: 0 additions & 5 deletions projectroles/templates/projectroles/project_invites.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ <h3><i class="iconify" data-icon="mdi:email"></i> Member Invites</h3>
<!-- Tour content -->
<script type="text/javascript">
tourEnabled = true;

tour.addStep('role_invites', {
title: 'Member Invites',
text: 'In this view you can invite people who are not yet users of ' +
Expand All @@ -97,7 +96,6 @@ <h3><i class="iconify" data-icon="mdi:email"></i> Member Invites</h3>
advanceOn: '.docs-link click',
showCancelLink: true
});

tour.addStep('invite_list', {
title: 'Invite List',
text: 'List of existing invites for this ' +
Expand All @@ -106,7 +104,6 @@ <h3><i class="iconify" data-icon="mdi:email"></i> Member Invites</h3>
advanceOn: '.docs-link click',
showCancelLink: true
});

if ($('.sodar-pr-invite-item-expire').length) {
tour.addStep('invite_expire', {
title: 'Invite Expiry Date',
Expand All @@ -118,7 +115,6 @@ <h3><i class="iconify" data-icon="mdi:email"></i> Member Invites</h3>
showCancelLink: true
});
}

if ($('.sodar-pr-invite-dropdown').length) {
tour.addStep('role_menu', {
title: 'Invite Dropdown',
Expand All @@ -128,7 +124,6 @@ <h3><i class="iconify" data-icon="mdi:email"></i> Member Invites</h3>
showCancelLink: true,
});
}

if ($('#sodar-pr-role-ops-dropdown').length) {
tour.addStep('role_ops', {
title: 'Member Operations Dropdown',
Expand Down
5 changes: 0 additions & 5 deletions projectroles/templates/projectroles/project_roles.html
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ <h3>
<!-- Tour content -->
<script type="text/javascript">
tourEnabled = true;

tour.addStep('role_list', {
title: 'Member List',
text: 'List of users given access for this ' +
Expand All @@ -124,7 +123,6 @@ <h3>
advanceOn: '.docs-link click',
showCancelLink: true
});

if ($('.sodar-pr-role-item-role').length) {
tour.addStep('role_item_role', {
title: 'Member Role',
Expand All @@ -140,7 +138,6 @@ <h3>
showCancelLink: true
});
}

if ($('.sodar-pr-role-dropdown-owner').length) {
tour.addStep('role_dropdown_owner', {
title: 'Owner Dropdown',
Expand All @@ -151,7 +148,6 @@ <h3>
showCancelLink: true,
});
}

if ($('.sodar-pr-role-dropdown').length) {
tour.addStep('role_dropdown', {
title: 'Member Dropdown',
Expand All @@ -166,7 +162,6 @@ <h3>
showCancelLink: true,
});
}

if ($('#sodar-pr-role-ops-dropdown').length) {
tour.addStep('role_ops', {
title: 'Member Operations Dropdown',
Expand Down

0 comments on commit 9f44e84

Please sign in to comment.