Skip to content

Commit

Permalink
[Web] improve strategy selector
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeDSM committed Dec 4, 2023
1 parent 731af59 commit c9ddfa5
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,15 @@
{{ strategy.get_risk().name | capitalize }}
</td>
<td class="align-middle">
{{ strategy.category.name_translations[locale] if strategy.category else '' }}
{% if strategy.category %}
{% if strategy.category.get_url() %}
<a href="{{strategy.category.get_url()}}" target="_blank" class="text-light">
{{ strategy.category.name_translations[locale] }} <i class="fas fa-external-link-alt"></i>
</a>
{% else %}
{{ strategy.category.name_translations[locale] }}
{% endif %}
{% endif %}
</td>
<td class="align-middle">
<button update-url="{{ url_for('profiles_management', action='download') }}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ <h2 class="card-title" id="#profileModalLabel">
class="btn btn-primary waves-effect duplicate-profile px-3">
<i class="fas fa-copy" aria-hidden="true"></i> <span class="d-none d-md-inline">Duplicate</span>
</button>
{% if current_profile.profile_id != profile.profile_id and not profile.read_only %}
{% if current_profile.profile_id != profile.profile_id and (profile.imported or not profile.read_only) %}
<button class="btn btn-outline-danger px-3 waves-effect remove-profile-button"
id="removeProfile{{profile.profile_id}}"
data-profile-id="{{profile.profile_id}}"
Expand Down
5 changes: 3 additions & 2 deletions Services/Interfaces/web_interface/templates/welcome.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@
<div class="card-body">
<div>
<p>
To quickly get started with OctoBot, the first thing to do is to select a trading profile to use.
To quickly get started with OctoBot, the first thing to do is to select a strategy to use.
</p>
<p>
Every profile can be used either with your real exchange account or using paper trading. Paper trading
A strategy is defined in a profile. Each profile can be used either with your real exchange
account or using paper trading. Paper trading
allows you to experiment a profile risk-free, with a virtual portfolio.
</p>
</div>
Expand Down

0 comments on commit c9ddfa5

Please sign in to comment.