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