mirror of
https://github.com/wallabag/wallabag.git
synced 2025-06-27 16:36:00 +00:00
Add IsGranted to import controllers
This commit is contained in:
parent
e3dc63f739
commit
9499b062d0
20 changed files with 71 additions and 17 deletions
|
@ -45,22 +45,24 @@
|
|||
</div>
|
||||
</li>
|
||||
|
||||
<li class="col l4 m6 s12">
|
||||
<div class="card light-green darken-1">
|
||||
<div class="card-content white-text">
|
||||
<span class="card-title white-text">{{ 'quickstart.migrate.title'|trans }}</span>
|
||||
<p>{{ 'quickstart.migrate.description'|trans }}</p>
|
||||
{% if is_granted('IMPORT_ENTRIES') %}
|
||||
<li class="col l4 m6 s12">
|
||||
<div class="card light-green darken-1">
|
||||
<div class="card-content white-text">
|
||||
<span class="card-title white-text">{{ 'quickstart.migrate.title'|trans }}</span>
|
||||
<p>{{ 'quickstart.migrate.description'|trans }}</p>
|
||||
</div>
|
||||
<div class="card-action">
|
||||
<ul>
|
||||
<li><a href="{{ path('import_pocket') }}">{{ 'quickstart.migrate.pocket'|trans }}</a></li>
|
||||
<li><a href="{{ path('import_readability') }}">{{ 'quickstart.migrate.readability'|trans }}</a></li>
|
||||
<li><a href="{{ path('import_instapaper') }}">{{ 'quickstart.migrate.instapaper'|trans }}</a></li>
|
||||
<li><a href="{{ path('import') }}">{{ 'quickstart.more'|trans }}</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-action">
|
||||
<ul>
|
||||
<li><a href="{{ path('import_pocket') }}">{{ 'quickstart.migrate.pocket'|trans }}</a></li>
|
||||
<li><a href="{{ path('import_readability') }}">{{ 'quickstart.migrate.readability'|trans }}</a></li>
|
||||
<li><a href="{{ path('import_instapaper') }}">{{ 'quickstart.migrate.instapaper'|trans }}</a></li>
|
||||
<li><a href="{{ path('import') }}">{{ 'quickstart.more'|trans }}</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
</li>
|
||||
{% endif %}
|
||||
|
||||
<li class="col l4 m6 s12">
|
||||
<div class="card blue darken-1">
|
||||
|
|
|
@ -123,7 +123,9 @@
|
|||
<ul id="dropdown-account" class="dropdown-content">
|
||||
<li><a href="{{ path('config') }}"><i class="material-icons">settings</i> {{ 'menu.left.config'|trans }}</a></li>
|
||||
<li><a href="{{ path('developer') }}"><i class="material-icons">smartphone</i> {{ 'menu.left.developer'|trans }}</a></li>
|
||||
<li><a href="{{ path('import') }}"><i class="material-icons">import_export</i> {{ 'menu.left.import'|trans }}</a></li>
|
||||
{% if is_granted('IMPORT_ENTRIES') %}
|
||||
<li><a href="{{ path('import') }}"><i class="material-icons">import_export</i> {{ 'menu.left.import'|trans }}</a></li>
|
||||
{% endif %}
|
||||
{% if craue_setting('restricted_access') and is_granted('LIST_SITE_CREDENTIALS') %}
|
||||
<li><a href="{{ path('site_credentials_index') }}"><i class="material-icons">vpn_key</i> {{ 'menu.left.site_credentials'|trans }}</a></li>
|
||||
{% endif %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue