move upgrade button to plugin page
This commit is contained in:
parent
1ec252aa37
commit
a622d7fc6a
@ -45,10 +45,12 @@ html {
|
||||
}
|
||||
body {
|
||||
margin: 0;
|
||||
height: 100%;
|
||||
}
|
||||
main {
|
||||
display: grid;
|
||||
grid-template-columns: 20% 80%;
|
||||
height: 100%;
|
||||
|
||||
@media (max-width: 900px) {
|
||||
grid-template-columns: 10% 90%;
|
||||
|
||||
@ -25,11 +25,7 @@
|
||||
|
||||
</div>
|
||||
<div class="plugin-button">
|
||||
{% if plugin.is_installed %}
|
||||
<form action="{{ url_for('plugin_upgrade', name=plugin.name) }}" method="POST">
|
||||
<button type="submit">Upgrade</button>
|
||||
</form>
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
<span>Plugin Marketplace</span>
|
||||
<span>/ {{ plugin_name }}</span>
|
||||
</div>
|
||||
<div class="header-bar">
|
||||
<div class="info">
|
||||
<div class="info-container">
|
||||
<div class="page-title">{{ plugin_name }}</div>
|
||||
<div class="page-description">By {{ author_name }}</div>
|
||||
@ -13,10 +13,9 @@
|
||||
<div class="page-button">
|
||||
{% block page_button %}
|
||||
{% if plugin_name in installed_plugins %}
|
||||
<div class="installed">
|
||||
<img src="{{ url_for('static', filename='/img/CheckCircle.svg')}}" alt="">
|
||||
Installed
|
||||
</div>
|
||||
<form action="{{ url_for('plugin_upgrade', name=plugin_name) }}" method="POST">
|
||||
<button type="submit">Upgrade</button>
|
||||
</form>
|
||||
{% else %}
|
||||
<form action="{{ url_for('plugin_install', name=plugin_name) }}" method="POST">
|
||||
<button type="submit">Install</button>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user