2025-02-19 13:41:45 -06:00

227 lines
11 KiB
HTML

<!DOCTYPE html>
<html{if="$language !== 'auto'"} lang="{$language}"{/if}>
<head>
{$pageName="tools"}
{include="includes"}
</head>
<body>
{include="page.header"}
<div id="toolsdiv" class="page-tools container">
<div class="row">
<div class="col-md-6 col-md-offset-3">
<div class="card">
<h1 class="card-header">{'Settings'|t}</h1>
<div class="list-action list-big">
<a class="list-item ripple" href="{$base_path}/admin/configure">
<div class="row">
<div class="col-sm-2 col-xs-3">
<div class="round-image-container">
<i class="mdi mdi-settings" title="{'Configure your Shaarli'|t}"></i>
</div>
</div>
<div class="col-sm-10 col-xs-9">
<div class="list-item-label">{'Configure your Shaarli'|t}</div>
<div class="list-item-sublabel">{'Change Title, timezone...'|t}</div>
</div>
</div>
</a>
{if="!$openshaarli"}
<a class="list-item ripple" href="{$base_path}/admin/password">
<div class="row">
<div class="col-sm-2 col-xs-3">
<div class="round-image-container">
<i class="mdi mdi-lock" title="{'Change password'|t}"></i>
</div>
</div>
<div class="col-sm-10 col-xs-9">
<div class="list-item-label">{'Change password'|t}</div>
<div class="list-item-sublabel">{'Change your password'|t}</div>
</div>
</div>
</a>
{/if}
<a class="list-item ripple" href="{$base_path}/admin/plugins">
<div class="row">
<div class="col-sm-2 col-xs-3">
<div class="round-image-container">
<i class="mdi mdi-puzzle" title="{'Plugin administration'|t}"></i>
</div>
</div>
<div class="col-sm-10 col-xs-9">
<div class="list-item-label">{'Plugin administration'|t}</div>
<div class="list-item-sublabel">{'Enable, disable and configure plugins'|t}</div>
</div>
</div>
</a>
<a class="list-item ripple" href="{$base_path}/admin/server">
<div class="row">
<div class="col-sm-2 col-xs-3">
<div class="round-image-container">
<i class="mdi mdi-server" title="{'Check instance\'s server configuration'|t}"></i>
</div>
</div>
<div class="col-sm-10 col-xs-9">
<div class="list-item-label">{'Server administration'|t}</div>
<div class="list-item-sublabel">{'Check instance\'s server configuration'|t}</div>
</div>
</div>
</a>
<a class="list-item ripple" href="{$base_path}/admin/tags">
<div class="row">
<div class="col-sm-2 col-xs-3">
<div class="round-image-container">
<i class="mdi mdi-tag-multiple" title="{'Tags'|t}"></i>
</div>
</div>
<div class="col-sm-10 col-xs-9">
<div class="list-item-label">{'Tags'|t}</div>
<div class="list-item-sublabel">{'Rename or delete a tag in all links'|t}</div>
</div>
</div>
</a>
<a class="list-item ripple" href="{$base_path}/admin/import">
<div class="row">
<div class="col-sm-2 col-xs-3">
<div class="round-image-container">
<i class="mdi mdi-file-import" title="{'Import'|t}"></i>
</div>
</div>
<div class="col-sm-10 col-xs-9">
<div class="list-item-label">{'Import'|t}</div>
<div class="list-item-sublabel">{'Import Netscape html bookmarks (as exported from Firefox, Chrome, Opera, delicious...)'|t}</div>
</div>
</div>
</a>
<a class="list-item ripple" href="{$base_path}/admin/export">
<div class="row">
<div class="col-sm-2 col-xs-3">
<div class="round-image-container">
<i class="mdi mdi-file-export" title="{'Export'|t}"></i>
</div>
</div>
<div class="col-sm-10 col-xs-9">
<div class="list-item-label">{'Export'|t}</div>
<div class="list-item-sublabel">{'Export Netscape html bookmarks (which can be imported in Firefox, Chrome, Opera, delicious...)'|t}</div>
</div>
</div>
</a>
</div>
</div>
</div>
</div>
{if="isset($tools_plugin)"}
<div class="row">
<div class="col-md-8 col-md-offset-2">
<hr class="darker"/>
<h2 class="mtm">Plugin settings</h2>
{loop="$tools_plugin"}
{$value}
{/loop}
</div>
</div>
{/if}
<div class="row">
<div class="col-md-8 col-md-offset-2">
<hr class="darker"/>
<h2 class="mtm">Bookmarklet</h2>
<p>You can easily bookmark links from anywhere on the web via bookmarklets right below.</p>
<p>They can be dragged and dropped among your browser's bookmarks. Then, you just have to click on them from your bookmarks menu.</p>
<div class="row">
<div class="col-xs-6 text-center">
<a class="bookmarklet"
href="javascript:(
function(){
var%20url%20=%20location.href;
var%20title%20=%20document.title%20||%20url;
var%20desc=document.getSelection().toString();
if(desc.length>4000){
desc=desc.substr(0,4000)+'...';
alert('{function="str_replace(' ', '%20', t('The selected text is too long, it will be truncated.'))"}');
}
window.open(
'{$pageabsaddr}admin/shaare?post='%20+%20encodeURIComponent(url)+
'&amp;title='%20+%20encodeURIComponent(title)+
'&amp;description='%20+%20encodeURIComponent(desc)+
'&amp;source=bookmarklet','_blank','menubar=no,height=800,width=600,toolbar=no,scrollbars=yes,status=no,dialog=1'
);
}
)();">
<img src="{$asset_path}/dist/img/tools/star-circle.png#" alt="" /> {'Shaare link'|t}
</a>
</div>
<div class="col-xs-6 text-center">
<a class="bookmarklet"
href="javascript:(
function(){
var%20desc=document.getSelection().toString();
if(desc.length>4000){
desc=desc.substr(0,4000)+'...';
alert('{function="str_replace(' ', '%20', t('The selected text is too long, it will be truncated.'))"}');
}
window.open(
'{$pageabsaddr}?private=1&amp;post='+
'&amp;description='%20+%20encodeURIComponent(desc)+
'&amp;source=bookmarklet','_blank','menubar=no,height=800,width=600,toolbar=no,scrollbars=yes,status=no,dialog=1'
);
}
)();">
<img src="{$asset_path}/dist/img/tools/star-circle.png#" alt="" /> {'Add Note'|t}
</a>
</div>
</div>
</div>
</div>
<div class="row mbm">
<div class="col-md-8 col-md-offset-2">
<hr class="darker"/>
<h2 class="mtm" id="firefox-api-title">{'3rd party'|t}</h2>
<ul>
<li>
<a href="https://addons.mozilla.org/fr/firefox/addon/shaarli/" title="Firefox {'Plugin'|t}" class="large-icon-button ripple">
<i class="mdi mdi-firefox"></i>
Firefox {'plugin'|t}
</a>
</li>
<li>
<a href="https://chromewebstore.google.com/detail/add-to-shaarli/jhfblapoehcfajokolimghdfmeeakbee" title="Chrome {'Plugin'|t}" class="large-icon-button ripple">
<i class="mdi mdi-google-chrome"></i>
Chrome {'plugin'|t}
</a>
</li>
<li>
<a href="https://f-droid.org/fr/packages/com.dimtion.shaarlier/" title="Android Shaarlier" class="large-icon-button ripple">
<i class="mdi mdi-android"></i>
Shaarlier
</a>
</li>
<li>
<a href="https://stakali.toneiv.eu/" title="Android Stakali" class="large-icon-button ripple">
<i class="mdi mdi-android"></i>
Stakali
</a>
</li>
<li>
<a href="https://github.com/lockcp/ShaarliOS" class="large-icon-button ripple">
<i class="mdi mdi-apple-ios"></i>
iOS
</a>
</li>
</ul>
</div>
</div>
<div class="row">
<div class="col-md-8 col-md-offset-2">
<p>Other <a href="https://shaarli.readthedocs.io/en/master/Community-and-related-software.html">{'Community and related software'|t}</a>.</p>
</div>
</div>
{loop="$tools_plugin"}
{$value}
{/loop}
</div>
{include="page.footer"}
</body>
</html>