-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
191 additions
and
34 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
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
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,96 @@ | ||
{% extends "base.html" %} | ||
{% load static %} | ||
|
||
{% block content %} | ||
<section class="pf-c-page__main-section pf-m-light"> | ||
<div class="pf-l-bullseye"> | ||
<div class="pf-l-bullseye__item"> | ||
<div class="pf-c-empty-state"> | ||
<div class="pf-c-empty-state__content"> | ||
|
||
<div class="pf-l-bullseye pf-u-p-xl ls_logo_home"> | ||
<img src="{% static 'users/lightspeed.png' %}" width="95px" alt="{{ project_name }} logo"/> | ||
</div> | ||
|
||
|
||
<h1 class="pf-c-title pf-m-lg">{{ project_name }}</h1> | ||
|
||
{% if user.is_authenticated %} | ||
<div class="ls_message_body"> | ||
<p>{% firstof user.external_username user.username %}</p> | ||
{% if user.rh_user_is_org_admin or user.rh_user_has_seat %} | ||
<p>Role: {% if user.rh_user_is_org_admin %}administrator{% endif %}{% if user.rh_user_is_org_admin and user.rh_user_has_seat %}, {% endif %}{% if user.rh_user_has_seat %}licensed user{% endif %}</p> | ||
{% endif %} | ||
|
||
</div> | ||
|
||
|
||
{% if has_active_plan %} | ||
<div class="ls_message_body"> | ||
You have an active <i>{{ has_active_plan.plan.name }}</i> that will end the {{ has_active_plan.expired_at }} | ||
</div> | ||
|
||
|
||
<div class="pf-v5-c-form__group pf-m-action"> | ||
<div class="pf-v5-c-form__actions"> | ||
<a href="vscode://"> | ||
<button class="pf-v5-c-button pf-m-primary pf-m-start" type="submit"> | ||
<span class="pf-v5-c-button__icon pf-m-start"> | ||
<i class="fas fa-pen" aria-hidden="true"></i> | ||
</span> | ||
Open VS Code | ||
</button> | ||
</a> | ||
</div> | ||
</div> | ||
|
||
{% elif has_expired_plan %} | ||
You have an expired ({{ has_active_plan.plan.name }}). | ||
{% else %} | ||
<form action={% url 'trial' %} method="post">{% csrf_token %} | ||
|
||
|
||
<div class="ls_message_body"> | ||
<p>Start a [90] days free trial with our recommanded model, <a href="https://www.ibm.com/products/watsonx-code-assistant">IBM watsonx Code Assistant</a>. | ||
<p>This will only apply to you and will not affect your organization. | ||
</div> | ||
|
||
|
||
<div class="ls_message_body"> | ||
{% if not user.commercial_terms_accepted %} | ||
<input type="checkbox" name="accept_commercial_terms"> | ||
<a href="{% url 'community_terms' %}">Accept the Terms and Condition</a>. | ||
{% else %} | ||
<!-- Term and condition: accepted --> | ||
{% endif %} | ||
</div> | ||
|
||
<div class="pf-c-empty-state__content"> | ||
<button class="pf-c-button pf-m-primary" type="submit" name="start_trial" value="True"> | ||
<span class="pf-c-button__icon"><i class="fa fa-check-circle"></i></span> | ||
Start Ansible Lightspeed trial | ||
</button> | ||
</div> | ||
</form> | ||
{% endif %} | ||
|
||
{% else %} | ||
<div class="pf-c-empty-state__body">You are currently not logged in. Please log in using the button below.</div> | ||
<a class="pf-c-button pf-m-primary" type="button" href="{% url 'login' %}">Log in</a> | ||
{% endif %} | ||
|
||
<div class="pf-l-level pf-m-gutter ls_bottom_menu"> | ||
<a class="pf-l-level__item" href="https://matrix.to/#/%23ansible-lightspeed:ansible.im" target="_blank"><span class="fas fa-solid fa-comments"></span> Chat</a> | ||
<a class="pf-l-level__item" href="{{ documentation_url }}" target="_blank"><span class="fas fa-sharp fa-solid fa-external-link-alt"></span> Documentation</a> | ||
<a class="pf-l-level__item" href="https://status.redhat.com/" target="_blank"><span class="fas fa-sharp fa-solid fa-check"></span> Status</a> | ||
|
||
{% if deployment_mode == 'saas' and user.is_authenticated and user.rh_user_is_org_admin %} | ||
<a class="pf-l-level__item" href="/console"><span class="fas fa-solid fa-cog"></span> Admin Portal</a> | ||
{% endif %} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
{% endblock content %} |
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