Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Making more apps optionnal

  • Loading branch information...
commit f15c3ebcc2445052996509c1c12208b554ecfd4a 1 parent 782e0fa
@raph-amiard authored
Showing with 17 additions and 3 deletions.
  1. +5 −0 bin/rzz/radio_settings.py
  2. +12 −3 bin/rzz/templates/radio_front.html
View
5 bin/rzz/radio_settings.py
@@ -16,11 +16,16 @@
ARTISTS_APP_MENU_NAME = "Artists"
PLANNING_SHOW_APP_MENU_NAME = "Planning"
SHARE_CONTENT_APP_MENU_NAME = "Archives"
+LISTEN_LINK_MENU_NAME = "Listen!"
+NEWS_APP_MENU_NAME = "News"
+PLAYLIST_APP_MENU_NAME = "Playlist"
+
IS_FRIENDS_APP_ACTIVATED = True
IS_ARTISTS_APP_ACTIVATED = True
IS_SHARE_CONTENT_APP_ACTIVATED = True
IS_PLANNING_SHOW_APP_ACTIVATED = True
IS_PLAYLIST_APP_ACTIVATED = True
+IS_NEWS_APP_ACTIVATED = True
INCLUDE_DEFAULT_CSS = True
LIQUIDSOAP_TELNET_PORT = 1235
View
15 bin/rzz/templates/radio_front.html
@@ -29,23 +29,32 @@ <h1 id="bigtitle">{{ radio_long_name }}</h1>
{% block menu %}
<div id="main_menu">
<ul id="main_menu_list">
- <li><a href="{% url listen %}" onclick='window.open("{% url listen %}", "Listen!", "width=350,height=200,scrollbars=no");return false'>Listen!</a></li>
- <li><a href="{% url news-post-list 1 %}">News</a></li>
+ <li><a href="{% url listen %}" onclick='window.open("{% url listen %}", "{{ listen_link_menu_name }}", "width=350,height=200,scrollbars=no");return false'>Listen!</a></li>
+
+ {% if is_news_app_activated %}
+ <li><a href="{% url news-post-list 1 %}">{{ news_app_menu_name }}</a></li>
+ {% endif %}
+
{% if is_playlist_app_activated %}
- <li><a href="{% url playlist-now %}">Playlist</a></li>
+ <li><a href="{% url playlist-now %}">{{ playlist_app_menu_name }}</a></li>
{% endif %}
+
{% if is_planning_show_app_activated %}
<li><a href="{% url show-active-planning %}">{{ planning_show_app_menu_name }}</a></li>
{% endif %}
+
{% if is_share_content_app_activated %}
<li><a href="{% url shared-contents-list 1 %}">{{ share_content_app_menu_name }}</a></li>
{% endif %}
+
{% if is_friends_app_activated %}
<li><a href="{% url friend-list 1 %}">{{ friends_app_menu_name }}</a></li>
{% endif %}
+
{% if is_artists_app_activated %}
<li><a href="{% url artist-list 1 %}">{{ artists_app_menu_name }}</a></li>
{% endif %}
+
<li><a href="{% url admin-root %}">Admin</a></li>
</ul>
</div>
Please sign in to comment.
Something went wrong with that request. Please try again.