Skip to content

Commit

Permalink
Show upload plugin button in mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
Xpirix committed Oct 2, 2024
1 parent 543d89e commit 6e6ceed
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
13 changes: 5 additions & 8 deletions qgis-app/plugins/templates/plugins/plugin_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,11 @@
<h2>{% if title %}{{title}}{% else %}{% trans "All plugins" %}{% endif %}</h2>
{# Filtered views menu #}
{% if object_list.count %}
<div id="list_commands">
<span class="num_items">{% blocktrans with records_count=page_obj.paginator.count %}{{ records_count }} records found{% endblocktrans %}</span>
<!-- <a class="toggle_desc" href="javascript:void(0);" onclick="return toggle_desc()">{% trans "Click to toggle descriptions." %}</a> -->
</div>
<div class="pagination">
{#% include 'sortable_listview/sort_links.html' %#}
</div>
<div class="field has-addons">

<span>
{% blocktrans with records_count=page_obj.paginator.count %}{{ records_count }} records found{% endblocktrans %}
</span>
<div class="field has-addons is-justify-content-center">
<p class="control">
<button id="grid-view-btn" class="button is-small is-info">
<span class="icon is-small">
Expand Down
7 changes: 6 additions & 1 deletion qgis-app/templates/layouts/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="box mb-0 context-container" id="context">
<div class="container">
<nav class="navbar" role="navigation" aria-label="main navigation">
<div class="navbar-brand">
<div class="navbar-brand is-align-items-center is-justify-content-space-between">
{% comment %} <a class="navbar-item brand">
QGIS
</a> {% endcomment %}
Expand All @@ -11,6 +11,11 @@
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
</a>

<a class="button is-success is-small is-outlined is-hidden-desktop" href="{% url "plugin_upload" %}">
<i class="fas fa-upload mr-3"></i>
{% trans "Upload a plugin" %}
</a>
</div>

<div id="pluginsNavbar" class="navbar-menu">
Expand Down

0 comments on commit 6e6ceed

Please sign in to comment.