extra menu links in navbar
This commit is contained in:
parent
39a7295849
commit
a0ad7acfcf
2 changed files with 4 additions and 0 deletions
|
@ -20,6 +20,7 @@ def get_conf(prefix="LARIGIRA_"):
|
|||
conf["DB_URI"] = os.path.join(conf_dir, "db.json")
|
||||
conf["SCRIPTS_PATH"] = os.path.join(conf_dir, "scripts")
|
||||
conf["EXTRA_STATIC_PATH"] = os.path.join(conf_dir, "extra")
|
||||
conf["EXTRA_MENU_LINKS"] = []
|
||||
conf["ROUTE_PREFIX"] = ""
|
||||
conf["BOOTSTRAP_SERVE_LOCAL"] = True
|
||||
conf["SECRET_KEY"] = "Please replace me!"
|
||||
|
|
|
@ -41,6 +41,9 @@ $(function() {
|
|||
<li><a href="{{url_for('db.addtime')}}">Add time</a></li>
|
||||
<li><a href="{{url_for('db.addaudio')}}">Add audio</a></li>
|
||||
<li><a href="{{url_for('db.events_calendar')}}">Calendar</a></li>
|
||||
{% for link in config.EXTRA_MENU_LINKS %}
|
||||
<li><a href="{{link.href}}" title="{{link.title}}">{{link.text}}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>{# collapse #}
|
||||
|
||||
|
|
Loading…
Reference in a new issue