...
 
Commits (17)
......@@ -8,7 +8,7 @@ STORAGE_ROOT=${STORAGE_ROOT:-"/var/ideascube"}
# Override with /etc/defautl/ideasube that may have
# been customized by user.
[ -r /etc/default/$NAME ] && . /etc/default/$NAME
[ -r /etc/default/ideascube ] && . /etc/default/ideascube
# Export them so django-admin can access them.
export DJANGO_SETTINGS_MODULE=$DJANGO_SETTINGS_MODULE
......
......@@ -18,7 +18,7 @@ home = /opt/venvs/irfi/
# and http://uwsgi-docs.readthedocs.org/en/latest/ParsingOrder.html
# for-readline is uWsgi >= 2.01 only:
# http://uwsgi-docs.readthedocs.org/en/latest/Changelog-2.0.1.html
for-readline = /etc/default/irfi
for-readline = /etc/default/ideascube
env = %(_)
end-for =
......
from ideascube.conf.kb import * # pragma: no flakes
LANGUAGE_CODE = 'fr'
from .kb import * # pragma: no flakes
LANGUAGE_CODE = 'fr'
from .kb_cod_rfifixe import * # pragma: no flakes
EXTRA_APP_CARDS = []
......@@ -21,7 +21,7 @@ class ContentForm(forms.ModelForm):
model = ListenerMessage
widgets = {
"author": forms.HiddenInput,
"published_at": forms.DateInput(format='%Y-%m-%d'),
"published_at": forms.DateInput(format='%d-%m-%Y'),
"lang": LangSelect,
"summary": RichTextEntry,
"text": RichTextEntry(with_media=True)
......
......@@ -13,17 +13,17 @@ class ListenerMessage(Content):
class RadioShow(Document):
THEMES = (
('healthcare', _('Access to health care.')),
('education', _('Access and quality of education.')),
('environment', _('Respect and protection of the environment, ecotourism.')),
('agriculture', _('Production and agricultural consumption.')),
('water_energy', _('Access and management of water and energy.')),
('women_rights', _("Women's rights.")),
('civil_rights', _('Participatory management and civil rights.')),
('youth', _('Youth and perspectives.')),
('culture', _('Arts, culture and heritage.')),
('migration', _('Migration and integration.')),
('media_local', _('Impact of new media on local communication.')),
('healthcare', _('Access to health care')),
('education', _('Access and quality of education')),
('environment', _('Respect and protection of the environment, ecotourism')),
('agriculture', _('Production and agricultural consumption')),
('water_energy', _('Access and management of water and energy')),
('women_rights', _("Women's rights")),
('civil_rights', _('Participatory management and civil rights')),
('youth', _('Youth and perspectives')),
('culture', _('Arts, culture and heritage')),
('migration', _('Migration and integration')),
('media_local', _('Impact of new media on local communication')),
('misc', _('Miscellaneous'))
)
......
......@@ -14,3 +14,11 @@
border: 2px solid #b9b9b9;
background-color: #eee;
}
.card.blog > .summary {
font-style: italic;
}
.logo {
width: 250px;
}
{% load i18n ideascube_tags %}
<a class="card blog" href="{% url 'blog:content_detail' pk=content.pk %}">
<h3>{{ content }}</h3>
<h5>
{% trans "draft" as draft %}
{% if content.status == content.DRAFT %}
<span class="draft">{% fa 'edit' 'fa-fw' %}{{ draft }}</span>
{% endif %}
{{ content.published_at|date:"SHORT_DATE_FORMAT" }} ⚫ {{ content.author }}
</h5>
<div class="summary">
{% if content.image %}
<img src="{% media content 'image' %}">
{% endif %}
{% if content.summary %}
{{ content.summary|safe }}
{% else %}
{{ content.text|summarize_html:100|safe }}
{% endif %}
</div>
</a>
{% load i18n %}
<a href="{% url 'message_create' %}" class="card tinted">
<i class="fa fa-music fa-3x"></i>
<h4>
{% comment %}Translators: Do not translate this, the translation is in Ideascube{% endcomment %}
<span class="theme discover">{% trans "discover" %}</span>
<span>
<<<<<<< HEAD
{% trans 'Post a new message' %}
=======
{% trans 'Participate' %}
>>>>>>> 9f649e9... fixup! Add a card pointing to
</span>
</h4>
<p>
{% trans 'Post a new message or a advertisement.' %}
</p>
</a>
{% load i18n static %}
{% spaceless %}
<header>
<section>
<section class="logo">
<a href="{% url 'index' %}">
<h1>
<span>
<img src="{% static 'branding/header-logo.png' %}"></img>
</h1>
</span>
</a>
</section>
<section class="boxname">
<a href="{% url 'index' %}">
<span class="boxid">{{ server_name }}</span>
</a>
......
-r https://framagit.org/ideascube/ideascube/raw/master/requirements.txt
# TODO: Eventually this needs to point to a release tag
git+https://framagit.org/ideascube/ideascube.git@master#egg=ideascube
git+https://framagit.org/ideascube/ideascube.git@0.37.1#egg=ideascube