Commit 612e951b authored by Titanium Hocker's avatar Titanium Hocker

Fix: button toolbar in FileAdmin

parent b8a6615e
...@@ -143,30 +143,30 @@ ...@@ -143,30 +143,30 @@
{% block toolbar %} {% block toolbar %}
<div class="btn-toolbar"> <div class="btn-toolbar">
{% if admin_view.can_upload %} {% if admin_view.can_upload %}
<div class="btn-group"> <div class="mx-1">
{%- if admin_view.upload_modal -%} {%- if admin_view.upload_modal -%}
{{ lib.add_modal_button(url=get_dir_url('.upload', path=dir_path, modal=True), {{ lib.add_modal_button(url=get_dir_url('.upload', path=dir_path, modal=True),
btn_class="btn btn-default btn-large", btn_class="btn btn-secondary",
content=_gettext('Upload File')) }} content=_gettext('Upload File')) }}
{% else %} {% else %}
<a class="btn btn-default btn-large" href="{{ get_dir_url('.upload', path=dir_path) }}">{{ _gettext('Upload File') }}</a> <a class="btn btn-secondary" href="{{ get_dir_url('.upload', path=dir_path) }}">{{ _gettext('Upload File') }}</a>
{%- endif -%} {%- endif -%}
</div> </div>
{% endif %} {% endif %}
{% if admin_view.can_mkdir %} {% if admin_view.can_mkdir %}
<div class="btn-group"> <div class="mx-1">
{%- if admin_view.mkdir_modal -%} {%- if admin_view.mkdir_modal -%}
{{ lib.add_modal_button(url=get_dir_url('.mkdir', path=dir_path, modal=True), {{ lib.add_modal_button(url=get_dir_url('.mkdir', path=dir_path, modal=True),
btn_class="btn btn-default btn-large", btn_class="btn btn-secondary",
content=_gettext('Create Directory')) }} content=_gettext('Create Directory')) }}
{% else %} {% else %}
<a class="btn btn-default btn-large" href="{{ get_dir_url('.mkdir', path=dir_path) }}">{{ _gettext('Create Directory') }}</a> <a class="btn btn-secondary" href="{{ get_dir_url('.mkdir', path=dir_path) }}">{{ _gettext('Create Directory') }}</a>
{%- endif -%} {%- endif -%}
</div> </div>
{% endif %} {% endif %}
{% if actions %} {% if actions %}
<div class="btn-group"> <div class="mx-1">
{{ actionslib.dropdown(actions, 'dropdown-toggle btn btn-default btn-large') }} {{ actionslib.dropdown(actions, 'dropdown-toggle btn btn-secondary') }}
</div> </div>
{% endif %} {% endif %}
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment