mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-12 01:50:48 +01:00
Add custom links to dashboard
This commit is contained in:
parent
ed8fe6c27a
commit
6ba8f3f7de
@ -1089,6 +1089,18 @@
|
|||||||
// Connection timeout, in seconds
|
// Connection timeout, in seconds
|
||||||
$config['purge_timeout'] = 3;
|
$config['purge_timeout'] = 3;
|
||||||
|
|
||||||
|
// Additional mod.php?/ pages (for developers). Look in inc/mod/pages.php for help.
|
||||||
|
//$config['mod']['custom_pages']['/something/(\d+)'] = function($id) {
|
||||||
|
// global $config;
|
||||||
|
// if (!hasPermission($config['mod']['something']))
|
||||||
|
// error($config['error']['noaccess']);
|
||||||
|
// // ...
|
||||||
|
//};
|
||||||
|
|
||||||
|
// Add links to dashboard (will all be in "Other" category)
|
||||||
|
$config['mod']['dashboard_links'] = array();
|
||||||
|
// $config['mod']['dashboard_links']['Something'] = '?/something';
|
||||||
|
|
||||||
// Remote servers
|
// Remote servers
|
||||||
// http://tinyboard.org/wiki/index.php?title=Multiple_Servers
|
// http://tinyboard.org/wiki/index.php?title=Multiple_Servers
|
||||||
//$config['remote']['static'] = array(
|
//$config['remote']['static'] = array(
|
||||||
|
@ -102,7 +102,7 @@
|
|||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
{% if mod|hasPermission(config.mod.search) %}
|
{% if mod|hasPermission(config.mod.search) %}
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend>{% trans 'Search' %}</legend>
|
<legend>{% trans 'Search' %}</legend>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
@ -110,7 +110,19 @@
|
|||||||
{% include 'mod/search_form.html' %}
|
{% include 'mod/search_form.html' %}
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% if config.mod.dashboard_links|count %}
|
||||||
|
<fieldset>
|
||||||
|
<legend>{% trans 'Other' %}</legend>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
{% for label,link in config.mod.dashboard_links %}
|
||||||
|
<li><a href="{{ link }}">{{ label }}</a></li>
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
</fieldset>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if config.debug %}
|
{% if config.debug %}
|
||||||
|
Loading…
Reference in New Issue
Block a user